Skip to content

Commit

Permalink
Bubble up error when contract cannot be initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdev22 committed Jan 17, 2024
1 parent 0500b98 commit a82a973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connector/web3/web3.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (c *web3Connector) VerifyERC1271Signature(contractAddress common.Address, h
*/
ct, err := NewErc1271(contractAddress, c.ethClient)
if err != nil {
return identity, errors.New("error occurred completing login")
return identity, fmt.Errorf("error occurred completing login %w", err)
}

isValid, err := ct.IsValidSignature(&bind.CallOpts{}, msgHash, signature)
Expand Down

0 comments on commit a82a973

Please sign in to comment.