Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
radicleart opened this issue Aug 24, 2022 · 0 comments

Comments

@radicleart
Copy link

radicleart commented Aug 24, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant