-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Labels
bugSomething isn't workingSomething isn't working
Description
🐛 Bug Description
Simple args for a option nested in a vector don't seem to work correctly
How to reproduce
Code snippet to reproduce
public entry fun test(
addrs: vector<Option<address>>,
) {
debug::print(&addrs);
}null, undefined, "0x1" or AccountAddress.ONE do not work.
const txn = await aptos.transaction.build.simple({
sender: account.accountAddress, data: {
function: "03a600d0632eb3aa4db751a803f4083cba1d2c838c168919e995080bff64ebe1::tester::test",
functionArguments: [[AccountAddress.ONE]]
}
})Stack trace / error message
Error: Type mismatch for argument 0, expected 'MoveOption'
at R (/Users/greg/WebstormProjects/aptos-playground/node_modules/@aptos-labs/ts-sdk/src/transactions/transactionBuilder/helpers.ts:114:9)
at checkType (/Users/greg/WebstormProjects/aptos-playground/node_modules/@aptos-labs/ts-sdk/src/transactions/transactionBuilder/remoteAbi.ts:472:7)
at checkOrConvertArgument (/Users/greg/WebstormProjects/aptos-playground/node_modules/@aptos-labs/ts-sdk/src/transactions/transactionBuilder/remoteAbi.ts:208:5)
Expected Behavior
Should just parse them easily enough
System information
System details:
- Typescript SDK Version 1.20.0 -> 1.38.0
- Platform (e.g. Node, browser, etc.) Node
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working