mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Remove unnecessary Uint8Array conversions
This commit is contained in:
parent
4c0c614a32
commit
d09c5fbaf9
@ -405,7 +405,7 @@ export class SigningCosmWasmClient extends CosmWasmClient {
|
|||||||
memo = "",
|
memo = "",
|
||||||
): Promise<BroadcastTxResponse> {
|
): Promise<BroadcastTxResponse> {
|
||||||
const txRaw = await this.sign(signerAddress, messages, fee, memo);
|
const txRaw = await this.sign(signerAddress, messages, fee, memo);
|
||||||
const txBytes = Uint8Array.from(TxRaw.encode(txRaw).finish());
|
const txBytes = TxRaw.encode(txRaw).finish();
|
||||||
return this.broadcastTx(txBytes);
|
return this.broadcastTx(txBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -297,7 +297,7 @@ export class SigningStargateClient extends StargateClient {
|
|||||||
memo = "",
|
memo = "",
|
||||||
): Promise<BroadcastTxResponse> {
|
): Promise<BroadcastTxResponse> {
|
||||||
const txRaw = await this.sign(signerAddress, messages, fee, memo);
|
const txRaw = await this.sign(signerAddress, messages, fee, memo);
|
||||||
const txBytes = Uint8Array.from(TxRaw.encode(txRaw).finish());
|
const txBytes = TxRaw.encode(txRaw).finish();
|
||||||
return this.broadcastTx(txBytes);
|
return this.broadcastTx(txBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user