Aptos Go-SDK Option Passing Parameter while Invoking method. #592
Unanswered
rudreshkoranne
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone! 👋
I'm trying to invoke a contract method using the Aptos Go-SDK. Here's the method definition in the Move module:
public entry fun mint(validator: &signer, avatar_cid: String, public_key: vector<u8>, proxyaddress: Option<address>) {}
The issue I'm facing is with the proxy_address parameter, which is an optional parameter of type Option
.In the TypeScript SDK, this can be achieved as follows:
const option = new MoveOption<AccountAddress>(ownerAcc.accountAddress);
How can I properly construct the Option
type in Go using the Aptos Go-SDK? Any help or pointers would be greatly appreciated!Beta Was this translation helpful? Give feedback.
All reactions