aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

Aptos sdk python transaction_argument

Open tufeilol opened this issue 3 years ago • 2 comments
trafficstars

I have made a bot in python for minting, but there is one problem. When I'm sending args in payload for contract, It's sending this: image But when I do a manual mint, arguments are in string and not bytes¨ image

I'm using aptos_sdk image

tufeilol avatar Oct 25 '22 08:10 tufeilol

Hello, how can i contact with you? Telegram? I think i have decesion

GilgameshH0 avatar Oct 25 '22 23:10 GilgameshH0

Hello, how can i contact with you? Telegram? I think i have decesion

Telegram https://t.me/+ipUHoeWyqYA3Y2Q1

tufeilol avatar Oct 26 '22 02:10 tufeilol

I'm a bit confused... it would probably be best to see a more comprehensive example.

For now, I'll close this out with two pointers: https://github.com/aptos-labs/aptos-core/blob/3973311dac6bb9348bfc81cf983c2a1be11f1b48/ecosystem/python/sdk/examples/simple-nft.py#L39 https://github.com/aptos-labs/aptos-core/blob/3973311dac6bb9348bfc81cf983c2a1be11f1b48/ecosystem/python/sdk/aptos_sdk/client.py#L311

Your first value looks like an address, but you're telling the system it is a string.

davidiw avatar Dec 04 '22 23:12 davidiw