Skip to content

Commit

Permalink
Revert "Use Helper Function for Store Contract"
Browse files Browse the repository at this point in the history
This reverts commit dcf7f80.
  • Loading branch information
joelsmith-2019 committed Oct 2, 2024
1 parent dcf7f80 commit 9612c20
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions wormchain/contracts/tools/deploy_wormchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,27 +147,20 @@ async function main() {
};
vaa.signatures = sign(VAA_SIGNERS, vaa as unknown as VAA<Payload>);
console.log("uploading", file);

let fee = {
amount: [{ amount: "0", denom: "uworm" }],
gas: "10000000",
};

const result = await client.core.sendMsgStoreCode({
const msg = client.core.msgStoreCode({
value: {
signer,
wasmByteCode: new Uint8Array(contract_bytes),
vaa: hexToUint8Array(serialiseVAA(vaa as unknown as VAA<Payload>)),
},
fee: fee,
}
});

// console.log("store code msg: ", msg);
console.log("store code msg: ", msg);

// const result = await client.signAndBroadcast(signer, [msg], {
// ...ZERO_FEE,
// gas: "10000000",
// });
const result = await client.signAndBroadcast(signer, [msg], {
...ZERO_FEE,
gas: "10000000",
});

console.log("store code result: ", result);

Expand Down Expand Up @@ -420,7 +413,7 @@ async function main() {
}
}),
client.core.msgCreateAllowlistEntryRequest({
value: {
value: {
signer: signer,
address: "wormhole18s5lynnmx37hq4wlrw9gdn68sg2uxp5rwf5k3u",
name: "nttAccountantTest",
Expand Down

0 comments on commit 9612c20

Please sign in to comment.