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<address>.

In the TypeScript SDK, this can be achieved as follows:

```const option = new 
MoveOption<AccountAddress>(ownerAcc.accountAddress);```

How can I properly construct the Option<address> type in Go using the Aptos 
Go-SDK? Any help or pointers would be greatly appreciated!

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/763c88c2-c8ac-4491-aaf5-508e90d824c6n%40googlegroups.com.

Reply via email to