Allow setting source and builder in .upload()

This commit is contained in:
Simon Warta
2020-02-28 15:24:54 +01:00
parent f8c71cf471
commit a8e3e87f69
6 changed files with 41 additions and 6 deletions
+1 -1
View File
@@ -72,7 +72,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, {}, "Upload ERC20 contract");
console.info(`Upload succeeded. Receipt: ${JSON.stringify(uploadReceipt)}`);
for (const initMsg of [initMsgHash, initMsgIsa, initMsgJade]) {