Skip to content

Commit

Permalink
transactions SignatureRaw add 0x prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
freehere107 committed Aug 13, 2024
1 parent 1a28a8f commit ad948a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (cl *Client) SignTransaction(moduleName, callName string, args ...interface
payload = util.BytesToHex(hasher.HashByCryptoName(util.HexToBytes(payload), "Blake2_256"))
}
// sign payload
genericExtrinsic.SignatureRaw = map[string]interface{}{string(cl.keyRing.Type()): cl.keyRing.Sign(util.AddHex(payload))}
genericExtrinsic.SignatureRaw = map[string]interface{}{string(cl.keyRing.Type()): utiles.AddHex(cl.keyRing.Sign(util.AddHex(payload)))}

// send extrinsic will return hash
encodedExtrinsic, err := genericExtrinsic.Encode(opt)
Expand Down

0 comments on commit ad948a6

Please sign in to comment.