Skip to content

multi-test: Store more data in ContractData #350

@ethanfrey

Description

@ethanfrey

When we instantiate a contract, we just store the code id, indexed by it's address.

In x/wasm, we store quite a bit more: https://github.com/CosmWasm/wasmd/blob/master/proto/cosmwasm/wasm/v1/types.proto#L68-L84

I think minimally we should add:

pub struct ContractData {
  pub code_id: u64,
  pub creator: Addr,
  pub admin: Option<Addr>,
  pub label: String,
}

Maybe add some created field with the block height set?

We do not need to store this in protobuf, but the info should be available to query in the tests. (And we should enforce some sanity checks there)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions