Skip to content

Commit

Permalink
update dfx version in github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tomijaga committed Dec 14, 2023
1 parent 4e11b5a commit 4c632a4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,19 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
- uses: aviate-labs/[email protected]
with:
dfx-version: 0.14.0

dfx-version: 0.15.1

- name: Cache Node modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install moc version manager
run: |
npm --yes -g i mocv
Expand Down Expand Up @@ -45,10 +53,10 @@ jobs:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
- uses: aviate-labs/[email protected]
with:
dfx-version: 0.14.0
dfx-version: 0.15.1

- name: Install moc version manager
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/ICRC1/lib.mo
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ module {
first_index := Nat.max(req.start, archive.stored_txs);
let tx_start_index = (first_index - archive.stored_txs) : Nat;

txs_in_canister:= SB.slice(transactions, tx_start_index, tx_start_index + req.length);
txs_in_canister:= SB.slice(transactions, tx_start_index, req.length);
};

let archived_range = if (req.start < archive.stored_txs) {
Expand Down

0 comments on commit 4c632a4

Please sign in to comment.