Error Type argument count mismatch when calling 0x1::managed_coin::register
#88
-
I'm trying to swap Aptos to USDT on testnet using Aptos SDK. Aptos SDK typescript version: 1.10.0 I'm getting an error Here's the code snippet:
I faced this same issue in September then I left Aptos, now getting into Aptos, and getting this error. I saw the data tab in Pontem wallet when swapping APTOS to USDT on liquidswap (testnet), the data is same. I'm confused on why I'm getting this error. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
It looks like the syntax is wrong (I assume you used to work with the legacy SDK syntax).
For reference, take a look at this example https://github.com/aptos-labs/aptos-ts-sdk/blob/main/examples/typescript/simple_transfer.ts#L78-L85 |
Beta Was this translation helpful? Give feedback.
-
your
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
your
coinRegisterPayload
object is different, check out the object keys.