@@ -4,13 +4,13 @@ use serde::{Deserialize, Serialize};
44use crate :: addresses:: HumanAddr ;
55use crate :: coins:: Coin ;
66
7- #[ derive( Serialize , Deserialize , Clone , Default , Debug , PartialEq , JsonSchema ) ]
7+ #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq , JsonSchema ) ]
88pub struct Env {
99 pub block : BlockInfo ,
1010 pub contract : ContractInfo ,
1111}
1212
13- #[ derive( Serialize , Deserialize , Clone , Default , Debug , PartialEq , JsonSchema ) ]
13+ #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq , JsonSchema ) ]
1414pub struct BlockInfo {
1515 pub height : u64 ,
1616 /// Absolute time of the block creation in seconds since the UNIX epoch (00:00:00 on 1970-01-01 UTC).
@@ -71,7 +71,7 @@ pub struct BlockInfo {
7171///
7272/// [MsgInstantiateContract]: https://github.com/CosmWasm/wasmd/blob/v0.15.0/x/wasm/internal/types/tx.proto#L47-L61
7373/// [MsgExecuteContract]: https://github.com/CosmWasm/wasmd/blob/v0.15.0/x/wasm/internal/types/tx.proto#L68-L78
74- #[ derive( Serialize , Deserialize , Clone , Default , Debug , PartialEq , JsonSchema ) ]
74+ #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq , JsonSchema ) ]
7575pub struct MessageInfo {
7676 /// The `sender` field from `MsgInstantiateContract` and `MsgExecuteContract`.
7777 /// You can think of this as the address that initiated the action (i.e. the message). What that
@@ -89,7 +89,7 @@ pub struct MessageInfo {
8989 pub funds : Vec < Coin > ,
9090}
9191
92- #[ derive( Serialize , Deserialize , Clone , Default , Debug , PartialEq , JsonSchema ) ]
92+ #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq , JsonSchema ) ]
9393pub struct ContractInfo {
9494 pub address : HumanAddr ,
9595}
0 commit comments