fungible-systems / micro-stacks

Tiny libraries for building the next generation of Stacks apps.
https://micro-stacks.dev
MIT License
82 stars 15 forks source link

Devnet (Clarinet Integrate) not supported by $contractCall.openContractCall #155

Open radicleart opened 2 years ago

radicleart commented 2 years ago

Regardless of how I set the network in my svelte application the web wallet ignores the fact that I should be connected to devnet / localhost.

Versions:

    "@micro-stacks/svelte": "^1.0.3",
    "micro-stacks": "^1.1.1",

E.g.

Screenshot 2022-08-24 at 14 09 42

In following config I've tried not passing network and passing various other values; 'local', 'mocknet', 'devnet' etc also a new StacksMocknet() from micro-stacks/network

    const config = {
      appName: 'Ecosystem DAO',
      appIconUrl: origin + '/img/logo.png',
      //network: ChainUtils.network()
    };
    mountClient(config)

in all cases the following

await $contractCall.openContractCall({
    postConditions: [],
    postConditionMode: PostConditionMode.Deny,
    contractAddress: deployer,
    contractName: 'executor-dao',
    functionName: 'construct',
    functionArgs: [bootstrap],
    onFinish: data => {
      console.log('finished contract call!', data);
      txId = data.txId;
    },
    onCancel: () => {
      console.log('popup closed!');
    },
  });

opens with the web wallet connected to the Hiro testnet (as opposed to local devnet)..

Screenshot 2022-08-24 at 14 13 00