Left Curve Software Stack
    Preparing search index...

    Function computeAddress

    • Given parameters used while instantiating a new contract, compute what the contract address would be.

      Mirrors that Rust function: grug::Addr::derive.

      Parameters

      • parameters: ComputeAddressParameters
        • deployer

          Address of the deployer, that it, the account that sends the Message::Instantiate.

        • codeHash

          SHA-256 hash of the Wasm byte code.

        • salt

          An arbitrary byte array chosen by the deployer.

      Returns `0x${string}`

      The address that is given to the contract being instantiated.