Skip to content

Commit

Permalink
Merge pull request #1283 from ainblockchain/feature/platfowner/feature
Browse files Browse the repository at this point in the history
Upgrade ain-util package version to v1.2.1
  • Loading branch information
platfowner authored Jul 5, 2024
2 parents 0967f1f + 092ea07 commit d94624e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"tracker": "node ./tracker-server/index.js"
},
"dependencies": {
"@ainblockchain/ain-util": "^1.1.9",
"@ainblockchain/ain-util": "^1.2.1",
"@google-cloud/logging-bunyan": "^3.2.0",
"@google-cloud/logging-winston": "^4.0.2",
"JSONStream": "^1.3.5",
Expand Down
2 changes: 1 addition & 1 deletion tools/account/seedPhraseToAccounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function seedPhraseToAccount(numAccounts) {
hidden: true,
}]);
for (let i = 0; i < numAccounts; i++) {
const account = ainUtil.mnemonicToAccount(input.seedPhrase, i);
const account = ainUtil.mnemonicToAccount(input.seedPhrase, i, 'ETH');
console.log(`\nAccount #${i}`);
console.log(account);
}
Expand Down
3 changes: 3 additions & 0 deletions tools/transfer/sendTransferTx.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ function buildTransferTxBody(fromAddr, toAddr, key, amount, timestamp) {
},
gas_price: 500,
timestamp,
// NOTE(platfowner): Nonce value can be changed manually for ordered or numbered transactions.
nonce: -1
// nonce: -2
// nonce: N // 0, 1, 2, ...
}
}

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@ainblockchain/ain-util@^1.1.9":
version "1.1.9"
resolved "https://registry.yarnpkg.com/@ainblockchain/ain-util/-/ain-util-1.1.9.tgz#4369547af354d84229c5b0f1fd4e93e8497d6227"
integrity sha512-u3q0h0zwWk+vzZ6VpBZiagVKJbNw/Dw4LVjBAhOvgPCx/E3jHHQCufIMDGqD4wjeBuHVtTAQyMTv7LRPSZFBGg==
"@ainblockchain/ain-util@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@ainblockchain/ain-util/-/ain-util-1.2.0.tgz#d2ac228c729cae9f87e8d43120ab0b4fab9de436"
integrity sha512-M0hjvyOSNurTVW1J5sW2zQoAqhry06OAInN3Mz9ARHde19rV2e23hob9laXQTayFUAYRQ5BZqITW9qtOL6HP7A==
dependencies:
bip39 "^3.0.4"
bn.js "^4.11.8"
Expand Down

0 comments on commit d94624e

Please sign in to comment.