mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +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) {
|
||||
final element = tuple.item1;
|
||||
|
||||
if (element.hasToken && !element.isError) {
|
||||
continue;
|
||||
}
|
||||
|
||||
//Calculate fees (GasLimit * gasPrice)
|
||||
// int txFee = element.gasPrice * element.gasUsed;
|
||||
final Amount txFee = element.gasCost;
|
||||
|
|
Loading…
Reference in a new issue