Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix: Added gas amount to estimate gas fee
Browse files Browse the repository at this point in the history
  • Loading branch information
reasje committed Sep 13, 2023
1 parent be28a97 commit b0b7583
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/features/common/contract/token_contract_use_case.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,14 @@ class TokenContractUseCase extends ReactiveUseCase {
required String to,
EtherAmount? gasPrice,
Uint8List? data,
BigInt? amountOfGas,
}) async =>
await _repository.tokenContract.estimateGesFee(
from: from,
to: to,
gasPrice: gasPrice,
data: data,
);
from: from,
to: to,
gasPrice: gasPrice,
data: data,
amountOfGas: amountOfGas);

Future<String> sendTransaction({
required String privateKey,
Expand Down

0 comments on commit b0b7583

Please sign in to comment.