Skip to content

Commit

Permalink
fix: change request
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigBalthazar committed Jul 11, 2024
1 parent a5486cb commit 866c8ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions wallet/wallet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,10 +578,11 @@ func TestSignMessage(t *testing.T) {
msg := "pactus"
expectedSig := "923d67a8624cbb7972b29328e15ec76cc846076ccf00a9e94d991c677846f334ae4ba4551396fbcd6d1cab7593baf3b7"

prv, _ := bls.PrivateKeyFromString(
"SECRET1PDRWTLP5PX0FAHDX39GXZJP7FKZFALML0D5U9TT9KVQHDUC99CMGQQJVK67")
prv, err := bls.PrivateKeyFromString("SECRET1PDRWTLP5PX0FAHDX39GXZJP7FKZFALML0D5U9TT9KVQHDUC99CMGQQJVK67")

err := td.wallet.ImportPrivateKey("", prv)
assert.NoError(t, err)

err = td.wallet.ImportPrivateKey(td.password, prv)
assert.NoError(t, err)

sig, err := td.wallet.SignMessage(msg, td.password, td.wallet.AllAccountAddresses()[0].Address)
Expand Down
3 changes: 2 additions & 1 deletion www/grpc/buf/grpc-gateway.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,5 @@ http:
get: "/pactus/Utils/Sign_Message_With_PrivateKey"

- selector: pactus.Utils.VerifyMessage
get: "/pactus/Utils/VerifyMessage"
get: "/pactus/Utils/VerifyMessage"

0 comments on commit 866c8ea

Please sign in to comment.