Skip to content

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

@mijoco-btc

Description

@mijoco-btc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions