Change pebblenet to uni and update wasm binary to 0.10.2
@@ -9,16 +9,16 @@ import { calculateFee } from "@cosmjs/stargate"
* 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/cw20-base/helpers.ts
*
* Create a client:
- * const [addr, client] = await useOptions(pebblenetOptions).setup('password');
+ * const [addr, client] = await useOptions(uniOptions).setup('password');
*
* Get the mnemonic:
- * await useOptions(pebblenetOptions).recoverMnemonic(password);
+ * await useOptions(uniOptions).recoverMnemonic(password);
*
* Create contract:
- * const contract = CW20(client, pebblenetOptions);
+ * const contract = CW20(client, uniOptions);
*
* Upload contract:
- * const codeId = await contract.upload(addr, pebblenetOptions);
+ * const codeId = await contract.upload(addr, uniOptions);
*
* Instantiate contract example:
* const initMsg = {
@@ -28,7 +28,7 @@ import { calculateFee } from "@cosmjs/stargate"
* initial_balances: [{ address: addr, amount: "10000" }],
* mint: { "minter": addr }
* };
- * const instance = await contract.instantiate(addr, codeId, initMsg, 'Potato Coin!', pebblenetOptions);
+ * const instance = await contract.instantiate(addr, codeId, initMsg, 'Potato Coin!', uniOptions);
*
* If you want to use this code inside an app, you will need several imports from https://github.com/CosmWasm/cosmjs
*/
@@ -269,7 +269,7 @@ export const CW20 = (client: SigningCosmWasmClient, options: Options): CW20Contr
}
const upload = async (senderAddress: string, options: Options): Promise<number> => {
- const sourceUrl = "https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.8.1/cw20_base.wasm"
+ const sourceUrl = "https://github.com/CosmWasm/cosmwasm-plus/releases/download/v0.10.2/cw20_base.wasm"
const wasm = await downloadWasm(sourceUrl)
const fee = calculateFee(options.fees.upload, options.gasPrice)
const result = await client.upload(senderAddress, wasm, fee)
