Function makeImmutable

  • Makes a deweb smart contract immutable

    Parameters

    • address: string

      The deweb smart contract address

    • provider: Provider

      The provider to use

    • waitFinal: boolean = false

      Whether to wait for the final execution or the speculative execution. False by default.

    Returns Promise<Operation>

    The operation

    Remarks

    WARNING This operation is irreversible. Once made immutable, you will not be able to update this site anymore.

    Example

    const operation = await makeImmutable(address, provider)
    await operation.waitFinalExecution()