Change genesis preserving contract history (#1076)
* preserve contract created date on genesis import and add query contract created date * add validate created * fix sims test app import export * add preserve contract history * Make proto-all only * Remove ResetFromGenesis * Add validation Co-authored-by: Alex Peters <alpe@users.noreply.github.com>
This commit is contained in:
@@ -391,10 +391,11 @@ func TestExecuteContractCmd(t *testing.T) {
|
||||
Contracts: []types.Contract{
|
||||
{
|
||||
ContractAddress: firstContractAddress,
|
||||
ContractInfo: types.ContractInfoFixture(func(info *types.ContractInfo) {
|
||||
info.Created = nil
|
||||
}),
|
||||
ContractState: []types.Model{},
|
||||
ContractInfo: types.ContractInfoFixture(),
|
||||
ContractState: []types.Model{},
|
||||
ContractCodeHistory: []types.ContractCodeHistoryEntry{
|
||||
types.ContractCodeHistoryEntryFixture(),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -473,10 +474,11 @@ func TestExecuteContractCmd(t *testing.T) {
|
||||
Contracts: []types.Contract{
|
||||
{
|
||||
ContractAddress: firstContractAddress,
|
||||
ContractInfo: types.ContractInfoFixture(func(info *types.ContractInfo) {
|
||||
info.Created = nil
|
||||
}),
|
||||
ContractState: []types.Model{},
|
||||
ContractInfo: types.ContractInfoFixture(),
|
||||
ContractState: []types.Model{},
|
||||
ContractCodeHistory: []types.ContractCodeHistoryEntry{
|
||||
types.ContractCodeHistoryEntryFixture(),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -500,10 +502,11 @@ func TestExecuteContractCmd(t *testing.T) {
|
||||
Contracts: []types.Contract{
|
||||
{
|
||||
ContractAddress: firstContractAddress,
|
||||
ContractInfo: types.ContractInfoFixture(func(info *types.ContractInfo) {
|
||||
info.Created = nil
|
||||
}),
|
||||
ContractState: []types.Model{},
|
||||
ContractInfo: types.ContractInfoFixture(),
|
||||
ContractState: []types.Model{},
|
||||
ContractCodeHistory: []types.ContractCodeHistoryEntry{
|
||||
types.ContractCodeHistoryEntryFixture(),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -528,10 +531,11 @@ func TestExecuteContractCmd(t *testing.T) {
|
||||
Contracts: []types.Contract{
|
||||
{
|
||||
ContractAddress: firstContractAddress,
|
||||
ContractInfo: types.ContractInfoFixture(func(info *types.ContractInfo) {
|
||||
info.Created = nil
|
||||
}),
|
||||
ContractState: []types.Model{},
|
||||
ContractInfo: types.ContractInfoFixture(),
|
||||
ContractState: []types.Model{},
|
||||
ContractCodeHistory: []types.ContractCodeHistoryEntry{
|
||||
types.ContractCodeHistoryEntryFixture(),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user