terra: test token_bridge migrate

Change-Id: I4baa721d4aa506a84c8b3ad80e1e9aa35633f975
This commit is contained in:
Reisen 2021-10-11 10:05:38 +00:00 committed by David Paryente
parent ddf43b85d7
commit 2a63d08b88
2 changed files with 19 additions and 1 deletions

View File

@ -149,7 +149,7 @@ async function main() {
gov_chain: govChain,
gov_address: Buffer.from(govAddress, "hex").toString("base64"),
wormhole_contract: addresses["wormhole.wasm"],
wrapped_asset_code_id: 2,
wrapped_asset_code_id: codeIds["cw20_wrapped.wasm"],
}
),
],

View File

@ -72,6 +72,24 @@ async function main() {
.then((tx) => terra.tx.broadcast(tx))
.then((rs) => console.log(rs));
await wallet
.createAndSignTx({
msgs: [
new MsgMigrateContract(
wallet.key.accAddress,
"terra10pyejy66429refv3g35g2t7am0was7ya7kz2a4",
codeIds["token_bridge.wasm"],
{
"action": ""
},
{ uluna: 1000 }
),
],
memo: "",
})
.then((tx) => terra.tx.broadcast(tx))
.then((rs) => console.log(rs));
// Set the Admin to the contract.
await wallet
.createAndSignTx({