mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-25 19:55:52 +00:00
don't grab successful token transactions in eth wallet
This commit is contained in:
parent
19605d2d25
commit
37f8a22ec2
1 changed files with 4 additions and 0 deletions
|
@ -266,6 +266,10 @@ class EthereumWallet extends Bip39Wallet with PrivateKeyInterface {
|
||||||
for (final tuple in allTxs) {
|
for (final tuple in allTxs) {
|
||||||
final element = tuple.item1;
|
final element = tuple.item1;
|
||||||
|
|
||||||
|
if (element.hasToken && !element.isError) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
//Calculate fees (GasLimit * gasPrice)
|
//Calculate fees (GasLimit * gasPrice)
|
||||||
// int txFee = element.gasPrice * element.gasUsed;
|
// int txFee = element.gasPrice * element.gasUsed;
|
||||||
final Amount txFee = element.gasCost;
|
final Amount txFee = element.gasCost;
|
||||||
|
|
Loading…
Reference in a new issue