Skip to content

Commit

Permalink
use a simpler comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
patrislav committed Dec 10, 2024
1 parent 71e7645 commit 54266a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ func (w *Wallet[C]) buildSignature(ctx context.Context, sign core.SigningFunctio
sig core.Signature[*v2.WalletConfig]
err error
)
if chainID.Cmp(big.NewInt(0)) == 0 {
if chainID.Sign() == 0 {
sig, err = config.BuildNoChainIDSignature(ctx, sign, false)
if err != nil {
return nil, nil, fmt.Errorf("SignDigest, BuildNoChainIDSignature: %w", err)
Expand Down

0 comments on commit 54266a5

Please sign in to comment.