mirror of
https://github.com/AthanorLabs/atomic-swap.git
synced 2026-01-09 22:28:04 -05:00
swapd error on subcommand (#311)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user