depositToWallet method

Future<void> depositToWallet({
  1. required BigInt value,
})

Implementation

Future<void> depositToWallet({
  required BigInt value,
}) async {
  var gasPrice = await this.signer.getGasPrice();
  final transaction = await this.signer.sendTransaction(
        TransactionRequest(
          from: await this.signer.getAddress(),
          to: this.contract.address,
          value: value,
          maxFeePerGas: gasPrice,
          maxPriorityFeePerGas: gasPrice,
        ),
      );

  print(transaction);
}