Set code meta to ERC20 contract

This commit is contained in:
Simon Warta
2020-03-02 12:30:52 +01:00
parent 7316838cf2
commit ea19f9b5e1
4 changed files with 24 additions and 15 deletions
+6 -1
View File
@@ -17,6 +17,11 @@ const guest = {
address: "cosmos17d0jcz59jf68g52vq38tuuncmwwjk42u6mcxej",
};
const codeMeta = {
source: "https://crates.io/api/v1/crates/cw-erc20/0.2.0/download",
builder: "confio/cosmwasm-opt:0.7.0",
};
const initMsgHash = {
decimals: 5,
name: "Hash token",
@@ -72,7 +77,7 @@ async function main() {
const client = new SigningCosmWasmClient(httpUrl, faucet.address, signBytes => pen.sign(signBytes));
const wasm = fs.readFileSync(__dirname + "/contracts/cw-erc20.wasm");
const uploadReceipt = await client.upload(wasm, {}, "Upload ERC20 contract");
const uploadReceipt = await client.upload(wasm, codeMeta, "Upload ERC20 contract");
console.info(`Upload succeeded. Receipt: ${JSON.stringify(uploadReceipt)}`);
for (const initMsg of [initMsgHash, initMsgIsa, initMsgJade]) {