Cleanup from pr review
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
|
||||
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user