Cleanup from pr review

This commit is contained in:
Ethan Frey
2020-10-05 19:59:44 +02:00
parent e7a1e49c2b
commit 8db7c5f5cd
2 changed files with 2 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ type reflectPayload struct {
// MaskQueryMsg is used to encode query messages
type MaskQueryMsg struct {
Owner *struct{} `json:"owner,omitempty"`
Capitalized *Text `json:"capitalized,omitempty""`
Capitalized *Text `json:"capitalized,omitempty"`
Chain *wasmTypes.QueryRequest `json:"chain,omitempty"`
}

View File

@@ -197,10 +197,7 @@ func NewEnv(ctx sdk.Context, creator sdk.AccAddress, deposit sdk.Coins, contract
if sec < 0 {
panic("Block (unix) time must never be negative ")
}
nano := ctx.BlockTime().UnixNano() - sec*1e9
if nano < 0 {
panic("Block (unix) nanoseconds must never be negative ")
}
nano := ctx.BlockTime().Nanosecond()
env := wasmTypes.Env{
Block: wasmTypes.BlockInfo{
Height: uint64(ctx.BlockHeight()),