Skip to content

Commit

Permalink
fixup! fixup! upgrade @aptos-labs/script-composer-pack and fix init
Browse files Browse the repository at this point in the history
  • Loading branch information
runtian-zhou committed Feb 4, 2025
1 parent 25d2de4 commit 9487337
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 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 @@
"@noble/hashes": "^1.4.0",
"@scure/bip32": "^1.4.0",
"@scure/bip39": "^1.3.0",
"@aptos-labs/script-composer-pack": "^0.0.8",
"@aptos-labs/script-composer-pack": "^0.0.9",
"eventemitter3": "^5.0.1",
"form-data": "^4.0.0",
"js-base64": "^3.7.7",
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/transactions/transactionBuilder/remoteAbi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export function convertCallArgument(
if (argument instanceof CallArgument) {
return argument;
}
return CallArgument.new_bytes(
return CallArgument.newBytes(
convertArgument(functionName, functionAbi, argument, position, genericTypeParams).bcsToBytes(),
);
}
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/transaction/transactionSubmission.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe("transaction submission", () => {
builder: async (builder) => {
await builder.addBatchedCalls({
function: `${contractPublisherAccount.accountAddress}::transfer::transfer`,
functionArguments: [CallArgument.new_signer(0), 1, receiverAccounts[0].accountAddress],
functionArguments: [CallArgument.newSigner(0), 1, receiverAccounts[0].accountAddress],
});
return builder;
},
Expand All @@ -92,7 +92,7 @@ describe("transaction submission", () => {
builder: async (builder) => {
const coin = await builder.addBatchedCalls({
function: "0x1::coin::withdraw",
functionArguments: [CallArgument.new_signer(0), 1],
functionArguments: [CallArgument.newSigner(0), 1],
typeArguments: ["0x1::aptos_coin::AptosCoin"],
});

Expand Down Expand Up @@ -233,7 +233,7 @@ describe("transaction submission", () => {
builder: async (builder) => {
const coin = await builder.addBatchedCalls({
function: "0x1::coin::withdraw",
functionArguments: [CallArgument.new_signer(0), 1],
functionArguments: [CallArgument.newSigner(0), 1],
typeArguments: ["0x1::aptos_coin::AptosCoin"],
});

Expand Down

0 comments on commit 9487337

Please sign in to comment.