diff --git a/terra/tools/deploy.js b/terra/tools/deploy.js index 948d3e238..5034db458 100644 --- a/terra/tools/deploy.js +++ b/terra/tools/deploy.js @@ -15,7 +15,13 @@ function sleep(ms) { } async function broadcastAndWait(terra, tx) { - return await terra.tx.broadcast(tx); + const response = await terra.tx.broadcast(tx); + let currentHeight = (await terra.tendermint.blockInfo()).block.header.height; + while (currentHeight <= response.height) { + await sleep(100); + currentHeight = (await terra.tendermint.blockInfo()).block.header.height; + } + return response; } /*