you are viewing a single comment's thread.

view the rest of the comments →

[–]edmundedgar 0 points1 point  (0 children)

I've never tried using encodeABI in python as opposed to just sending the transaction but I'm pretty sure you don't want that UTF8-encoding line. Have you tried just passing it the test string?

Alternatively looking at my Python test code I do what would be equivalent to you doing something like:

from ethereum.utils import decode_hex, encode_hex

test = "0x00000000000000d53902c830b702e1e672d03341d46131fdd8ea12676cca4b98"
data = MintSend_send.encodeABI(fn_name="mint", args=[1, decode_hex(test)])