Closed developerpaaji closed 1 year ago
Can you share/describe the way you are deploying your contract?
Here is the code
` List
AbiType abiType = parseAbiType('(address)');
final sink = LengthTrackingByteSink();
abiType.encode(
[EthereumAddress.fromHex(marketplaceAddress)], sink);
data.addAll(sink.asBytes());
final transaction = Transaction(
to: null,
from: walletService.credentials!.address,
data: Uint8List.fromList(data),
);
final transactionHash = await web3Client.sendTransaction(
walletService.credentials!, transaction,
chainId: 80001);
`
I will fix this issue with the next release.
Meanwhile, use this code:
import 'package:web3dart/src/utils/length_tracking_byte_sink.dart';
Closing this one but please feel free to open a new issue anytime.
Yeah i am using this way if you want i can create pull request and you can accept it
Please do :)
Please make a part
.
oh okay
created
In order to deploy contract we need 'length_tracking_byte_sink.dart' to encode abi data. Currently its not exported from web3.dart