Skip to content

Commit

Permalink
Wallet.SignMessage: SignContext.WalletAddress not set
Browse files Browse the repository at this point in the history
  • Loading branch information
marino39 authored and attente committed Aug 8, 2023
1 parent 4f34519 commit de8a111
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ func (w *Wallet[C]) SignMessage(ctx context.Context, msg []byte) ([]byte, core.S
ctx = signing_service.ContextWithSignContext(ctx, signContext)
}

signContext.WalletAddress = ethkit.ToPtr(w.address.Hex())
signContext.Message = ethkit.ToPtr(string(msg))

return w.SignDigest(ctx, MessageDigest(msg))
Expand Down

0 comments on commit de8a111

Please sign in to comment.