swapd error on subcommand (#311)

This commit is contained in:
Dmitry Holodov
2023-02-20 15:05:38 -06:00
committed by GitHub
parent 812ba9d6b6
commit 94a67b9949
4 changed files with 12 additions and 8 deletions

View File

@@ -162,7 +162,7 @@ func (c *ethClient) SetGasPrice(gasPrice uint64) {
c.gasPrice = nil
return
}
c.gasPrice = big.NewInt(0).SetUint64(gasPrice)
c.gasPrice = new(big.Int).SetUint64(gasPrice)
}
// SetGasLimit sets the ethereum gas limit to use (in wei). In most cases you should not

View File

@@ -96,7 +96,7 @@ func (f *EventFilter) Start() error {
}
// the filter is inclusive of the latest block when `ToBlock` is nil, so we add 1
f.filterQuery.FromBlock = big.NewInt(0).Add(currHeader.Number, big.NewInt(1))
f.filterQuery.FromBlock = new(big.Int).Add(currHeader.Number, big.NewInt(1))
header = currHeader
}
}()