Merge pull request #990 from yann-sjtu/fix-bug-of-contract-history
fix bug of contract history
This commit is contained in:
@@ -577,7 +577,7 @@ func (k Keeper) appendToContractHistory(ctx sdk.Context, contractAddr sdk.AccAdd
|
||||
defer iter.Close()
|
||||
|
||||
if iter.Valid() {
|
||||
pos = sdk.BigEndianToUint64(iter.Value())
|
||||
pos = sdk.BigEndianToUint64(iter.Key())
|
||||
}
|
||||
// then store with incrementing position
|
||||
for _, e := range newEntries {
|
||||
|
||||
Reference in New Issue
Block a user