Skip to content

Commit

Permalink
Merge pull request #195 from CosmWasm/update_history
Browse files Browse the repository at this point in the history
Full history of contract code migrations
  • Loading branch information
ethanfrey committed Jul 20, 2020
2 parents 45ef2f3 + a9f31c7 commit 65e4e3a
Show file tree
Hide file tree
Showing 19 changed files with 478 additions and 195 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
## [Unreleased]

### Features
* (wasmd) [\#130](https://github.com/CosmWasm/wasmd/issues/130) Full history of contract code migrations
* (wasmd) [\#187](https://github.com/CosmWasm/wasmd/issues/187) Introduce wasmgovd binary
* (wasmd) [\#178](https://github.com/CosmWasm/wasmd/issues/178) Add cli support for wasm gov proposals
* (wasmd) [\#163](https://github.com/CosmWasm/wasmd/issues/163) Control who can instantiate code
Expand Down
2 changes: 1 addition & 1 deletion x/wasm/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var (
GetContractAddressKey = types.GetContractAddressKey
GetContractStorePrefixKey = types.GetContractStorePrefixKey
NewCodeInfo = types.NewCodeInfo
NewCreatedAt = types.NewCreatedAt
NewAbsoluteTxPosition = types.NewAbsoluteTxPosition
NewContractInfo = types.NewContractInfo
NewEnv = types.NewEnv
NewWasmCoins = types.NewWasmCoins
Expand Down
3 changes: 3 additions & 0 deletions x/wasm/internal/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ func ExportGenesis(ctx sdk.Context, keeper Keeper) types.GenesisState {
}
state = append(state, m)
}
// redact contract info
contract.Created = nil
contract.ContractCodeHistory = nil

genState.Contracts = append(genState.Contracts, types.Contract{
ContractAddress: addr,
Expand Down
Loading

0 comments on commit 65e4e3a

Please sign in to comment.