Skip to content

Commit

Permalink
Updated gwei -> wei in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Sterling Long committed Aug 11, 2023
1 parent 812adab commit ae63ef4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/wallet/lib/dependencies/chains/evm_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -249,19 +249,19 @@ class EVMService extends IChain {
),
gasPrice: ethTransaction.gasPrice != null
? EtherAmount.fromUnitAndValue(
EtherUnit.gwei,
EtherUnit.wei,
BigInt.tryParse(ethTransaction.gasPrice!) ?? BigInt.zero,
)
: null,
maxFeePerGas: ethTransaction.maxFeePerGas != null
? EtherAmount.fromUnitAndValue(
EtherUnit.gwei,
EtherUnit.wei,
BigInt.tryParse(ethTransaction.maxFeePerGas!) ?? BigInt.zero,
)
: null,
maxPriorityFeePerGas: ethTransaction.maxPriorityFeePerGas != null
? EtherAmount.fromUnitAndValue(
EtherUnit.gwei,
EtherUnit.wei,
BigInt.tryParse(ethTransaction.maxPriorityFeePerGas!) ??
BigInt.zero,
)
Expand Down

0 comments on commit ae63ef4

Please sign in to comment.