Skip to content

Issue with framework deployment via Authz #569

@hard-nett

Description

@hard-nett

Context

Bitsong is currently permissioned CW, and to deploy the abstract accounts framework, a DAO was authorized with full wasm capabilities was created.

This DAO used the x/authz to allow a hot wallet to upload, instantiate, execute, and migrate contracts on its behalf.

Upon using cw-orchestrator to deploy on Bitsong, we have run into issues with the module_factory internal state, expecting the registry_address to be a different contract address than what it actually is.

Logs

error msg:

Error: Query failed with (6): rpc error: code = Unknown desc = failed to execute message; message index: 0: dispatch: submessages: address bitsong1cr4g55aajmlznr6dt9fhxh8dwutw6pqwg5lfz9hp095amrdqdn5sjxyy2q: no such contract

bitsong-2b state.json:

{
  "bitsong-2b": {
    "code_ids": {
      "abstract:account": 96,
      "abstract:ans-host": 93,
      "abstract:ibc-client": 97,
      "abstract:ibc-host": 98,
      "abstract:module-factory": 95,
      "abstract:registry": 94,
      "cw:blob": 92
    },
    "default": {
      "abstract:ans-host": "bitsong1m8au6ht37r8mh322rtnw7592a6n62zruljp9f9d4pmuq8hk3w0yqvjqu72",
      "abstract:ibc-client": "bitsong19l4dtkv5qp80c94crj2ttl53y9auxdal2vady95c85c8k8365q3qnahuvm",
      "abstract:ibc-host": "bitsong10eefx7pgxjqea4gde5e64c6phx8kgmhuuutc6gfycehyj2ueejhsahyald",
      "abstract:module-factory": "bitsong1s6dytk4pdw5eqt4ert2rz23d0g32zhld3pq7gnryta6mdt07pn0swqtnnx",
      "abstract:registry": "bitsong1qcra4pp6nh8pkfqpnj9ljhfr4cstgz9yum3ea0ssqwffvy8e2y6s8nnsxp"
    }
  }
}

Steps To Reproduce

  1. install go-bitsong:
git clone https://github.com/bitsongofficial/go-bitsong
cd go-bitsong && make install
  1. Download & Run Scripts to deploy on local network via cw-orchestrator & authz:
git clone https://github.com/hard-nett/bitsong-sh-scripts
cd bitsong-sh-scripts/interchain-accounts && sh a.deploy.sh

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