mirror of
https://github.com/AthanorLabs/atomic-swap.git
synced 2026-01-09 14:18:03 -05:00
fix: add nil check for shutdown err (#115)
This commit is contained in:
@@ -345,6 +345,10 @@ func (s *swapState) tryClaim() (ethcommon.Hash, error) {
|
||||
// It returns Bob's public spend key and his private view key, so that Alice can see
|
||||
// if the funds are locked.
|
||||
func (s *swapState) generateAndSetKeys() error {
|
||||
if s == nil {
|
||||
return errNilSwapState
|
||||
}
|
||||
|
||||
if s.privkeys != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user