Skip to content

Commit d98b74b

Browse files
findolororkunkl
authored andcommitted
Update wasm binary version and example code
1 parent 6a80de8 commit d98b74b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

contracts/cw4-group/helpers.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,32 @@ import { calculateFee } from "@cosmjs/stargate"
88
* Usage: npx @cosmjs/cli@^0.26 --init https://raw.githubusercontent.com/CosmWasm/cw-plus/master/contracts/base-helpers.ts --init https://raw.githubusercontent.com/CosmWasm/cw-plus/master/contracts/cw4-group/helpers.ts
99
*
1010
* Create a client:
11-
* const [addr, client] = await useOptions(pebblenetOptions).setup('password');
11+
* const [addr, client] = await useOptions(uniOptions).setup('password');
1212
*
1313
* Get the mnemonic:
14-
* await useOptions(pebblenetOptions).recoverMnemonic(password);
14+
* await useOptions(uniOptions).recoverMnemonic(password);
1515
*
1616
* Create contract:
17-
* const contract = CW4Group(client, pebblenetOptions);
17+
* const contract = CW4Group(client, uniOptions);
1818
*
1919
* Upload contract:
20-
* const codeId = await contract.upload(addr, pebblenetOptions);
20+
* const codeId = await contract.upload(addr, uniOptions);
2121
*
2222
* Instantiate contract example:
2323
* const initMsg = {
2424
* admin: addr,
2525
* members: [
2626
* {
27-
* addr: "wasm1hkxhcvw6sfyu6ztkce3dlz5nnk8kwjmcd7ettt",
27+
* addr: "juno17r7l8v2nlxpf53p4zgdlq9trw0ndw5x3jp98yh",
2828
* weight: 10,
2929
* },
3030
* {
31-
* addr: "wasm1z6ms6cejaj8jz8zwkntx9ua0klhtptvz8elaxp",
31+
* addr: "juno10h52xd7gec64zp6ct6qfu3lhhnuv4lgz7srs8g",
3232
* weight: 15,
3333
* },
3434
* ]
3535
* };
36-
* const instance = await contract.instantiate(addr, codeId, initMsg, 'Potato Coin!', pebblenetOptions);
36+
* const instance = await contract.instantiate(addr, codeId, initMsg, 'Potato Coin!', uniOptions);
3737
*
3838
* If you want to use this code inside an app, you will need several imports from https://github.com/CosmWasm/cosmjs
3939
*/
@@ -168,7 +168,7 @@ export const CW4Group = (client: SigningCosmWasmClient, options: Options): CW4Gr
168168
}
169169

170170
const upload = async (senderAddress: string, options: Options): Promise<number> => {
171-
const sourceUrl = "https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.9.0/cw4_group.wasm"
171+
const sourceUrl = "https://github.com/CosmWasm/cw-plus/releases/download/v0.10.2/cw4_group.wasm"
172172
const wasm = await downloadWasm(sourceUrl)
173173
const fee = calculateFee(options.fees.upload, options.gasPrice)
174174
const result = await client.upload(senderAddress, wasm, fee)

0 commit comments

Comments
 (0)