Closed athlona64 closed 2 years ago
hexToBytes('0x095ea7b300000000000000000000000011111112542d85b3ef69ae05771c2dccff4faa26ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff');
is not work
can solve with remove from parameters
final tx = await client.sendTransaction(
credentials,
Transaction(
data: hexToBytes(data),
gasPrice: EtherAmount.fromUnitAndValue(EtherUnit.wei, int.parse(gasPrice)),
to: EthereumAddress.fromHex(to),
value: EtherAmount.fromUnitAndValue(EtherUnit.wei, value),
nonce: nonce
),
chainId: int.parse(chainId)
);
i have data
0x095ea7b300000000000000000000000011111112542d85b3ef69ae05771c2dccff4faa26ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
and type is string
i will send this data to contract
but below is can sent but data is incorrect
expected data is : above
but on chain show so incorrect https://bscscan.com/tx/0x74def6475a25402b3d30afc7ee20f8a51ba5d98af3983be826b7cf020fdab21b