Skip to content

Commit eb8fc97

Browse files
authored
[scriptComposer]fix object detected in rust (#647)
* fix object detected in rust * ty -> typeArgument
1 parent 43420bb commit eb8fc97

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All notable changes to the Aptos TypeScript SDK will be captured in this file. T
88
- Upgrade rotateAuthKey API to support Account types other than Ed25519.
99
- Update simulation for MultiKeyAccount to use signatures of the same type as the corresponding public key.
1010
- Add `truncateAddress` helper function to truncate an address at the middle with an ellipsis.
11+
- Fix scriptComposer addBatchedCalls more typeArguments error
1112

1213
# 1.35.0 (2025-02-11)
1314

src/transactions/scriptComposer/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ export class AptosScriptComposer {
5858

5959
// Load the calling type arguments into the loader.
6060
if (input.typeArguments !== undefined) {
61-
await Promise.all(input.typeArguments.map((typeTag) => this.builder.load_type_tag(nodeUrl, typeTag.toString())));
61+
for (const typeArgument of input.typeArguments) {
62+
await this.builder.load_type_tag(nodeUrl, typeArgument.toString());
63+
}
6264
}
6365
const typeArguments = standardizeTypeTags(input.typeArguments);
6466
const functionAbi = await fetchMoveFunctionAbi(moduleAddress, moduleName, functionName, this.config);

0 commit comments

Comments
 (0)