Skip to content

Commit

Permalink
Update Tools Stargate Version
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Oct 2, 2024
1 parent 62a7ae1 commit b19e570
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 506 deletions.
11 changes: 1 addition & 10 deletions wormchain/contracts/tools/deploy_wormchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,10 @@ async function main() {
vaa.signatures = sign(VAA_SIGNERS, vaa as unknown as VAA<Payload>);
console.log("uploading", file);

let bytes = new Uint8Array(contract_bytes);
// ensure bytes array is a multiple of 4
if (bytes.length % 4 !== 0) {
const extraBytes = 4 - (bytes.length % 4);
const newBytes = new Uint8Array(bytes.length + extraBytes);
newBytes.set(bytes, extraBytes);
bytes = newBytes;
}

const msg = client.core.msgStoreCode({
value: {
signer,
wasmByteCode: bytes,
wasmByteCode: new Uint8Array(contract_bytes),
vaa: hexToUint8Array(serialiseVAA(vaa as unknown as VAA<Payload>)),
}
});
Expand Down
Loading

0 comments on commit b19e570

Please sign in to comment.