update mode

This commit is contained in:
liangping 2021-09-20 20:34:53 +08:00
parent dfda5c56ad
commit 2855eb880d

View File

@ -332,7 +332,7 @@ const chainAPI = class ChainFetch {
const txString = toBase64(TxRaw.encode(bodyBytes).finish())
const txRaw = {
tx_bytes: txString,
mode: 'BROADCAST_MODE_BLOCK', // BROADCAST_MODE_SYNC, BROADCAST_MODE_BLOCK, BROADCAST_MODE_ASYNC
mode: 'BROADCAST_MODE_SYNC', // BROADCAST_MODE_SYNC, BROADCAST_MODE_BLOCK, BROADCAST_MODE_ASYNC
}
return this.post('/cosmos/tx/v1beta1/txs', txRaw, config).then(res => {
if (res.code && res.code !== 0) {