Use base64 encoding for tx query
This commit is contained in:
parent
e6bf27f844
commit
3d0546a582
@ -74,13 +74,13 @@ function encodeBroadcastTxParams(params: requests.BroadcastTxParams): RpcBroadca
|
||||
}
|
||||
|
||||
interface RpcTxParams {
|
||||
/** hex encoded */
|
||||
/** base64 encoded */
|
||||
readonly hash: string;
|
||||
readonly prove?: boolean;
|
||||
}
|
||||
function encodeTxParams(params: requests.TxParams): RpcTxParams {
|
||||
return {
|
||||
hash: toHex(assertNotEmpty(params.hash)),
|
||||
hash: toBase64(assertNotEmpty(params.hash)),
|
||||
prove: params.prove,
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user