Skip to content
by Unity Nodes
Development

I've an issue about contract initialisation

3 posts364 views2 likesLast activity Jul 2022

  1. GaloisField2718OP

    Hello,
    I’ve an issue about contract initialisation (I’m working on sputnik-dao-contract https://github.com/near-daos/sputnik-dao-contract)
    I deployed a contract on anank13.testnet. It was a contract to be a DAO (sputnik-dao-contract/sputnikdao2/res/sputnikdao2.wasm). Ok right. But now I have deployed test_token.wasm with the same address. When I’m initialising it with
    near call anank13.testnet new --accountId anank13.testnet --gas $MAX_GAS
    I have
    ExecutionError: 'Smart contract panicked: The contract has already been initialized' .
    Obviously, I had previously initialise it but now it’s not the same contract. How can I revoke previous initialisation to create a new one ? Have I miss a function in one of lib.rs ?
    :m:

  2. David_NEAR 1

    Hey,

    Best place to get technical support is here on Zulip Chat or over on the Discord during office hours

  3. GaloisField2718 1

    Hi,
    Ah thank you it’s what I was looking for.