@@ -83,8 +83,8 @@ func TestOnOpenChannel(t *testing.T) {
8383 }
8484 require .NoError (t , err )
8585 // verify gas consumed
86- const storageCosts = storetypes .Gas (2903 )
87- assert .Equal (t , spec .expGas , ctx .GasMeter ().GasConsumed ()- before - storageCosts )
86+ const storageCosts = storetypes .Gas (3903 )
87+ assert .Equal (t , spec .expGas , ctx .GasMeter ().GasConsumed ()- before - storageCosts - types . DefaultInstanceCost )
8888 })
8989 }
9090}
@@ -189,8 +189,8 @@ func TestOnConnectChannel(t *testing.T) {
189189 }
190190 require .NoError (t , err )
191191 // verify gas consumed
192- const storageCosts = storetypes .Gas (2903 )
193- assert .Equal (t , spec .expContractGas , ctx .GasMeter ().GasConsumed ()- before - storageCosts )
192+ const storageCosts = storetypes .Gas (3903 )
193+ assert .Equal (t , spec .expContractGas , ctx .GasMeter ().GasConsumed ()- before - storageCosts - types . DefaultInstanceCost )
194194 // verify msgs dispatched
195195 require .Len (t , * capturedMsgs , len (spec .contractResp .Messages ))
196196 for i , m := range spec .contractResp .Messages {
@@ -299,8 +299,8 @@ func TestOnCloseChannel(t *testing.T) {
299299 }
300300 require .NoError (t , err )
301301 // verify gas consumed
302- const storageCosts = storetypes .Gas (2903 )
303- assert .Equal (t , spec .expContractGas , ctx .GasMeter ().GasConsumed ()- before - storageCosts )
302+ const storageCosts = storetypes .Gas (3903 )
303+ assert .Equal (t , spec .expContractGas , ctx .GasMeter ().GasConsumed ()- before - storageCosts - types . DefaultInstanceCost )
304304 // verify msgs dispatched
305305 require .Len (t , * capturedMsgs , len (spec .contractResp .Messages ))
306306 for i , m := range spec .contractResp .Messages {
@@ -495,8 +495,8 @@ func TestOnRecvPacket(t *testing.T) {
495495 }
496496
497497 // verify gas consumed
498- const storageCosts = storetypes .Gas (2903 )
499- assert .Equal (t , spec .expContractGas , ctx .GasMeter ().GasConsumed ()- before - storageCosts )
498+ const storageCosts = storetypes .Gas (3903 )
499+ assert .Equal (t , spec .expContractGas , ctx .GasMeter ().GasConsumed ()- before - storageCosts - types . DefaultInstanceCost )
500500
501501 // verify msgs dispatched on success/ err response
502502 if spec .contractResp .Err != "" {
@@ -606,8 +606,8 @@ func TestOnAckPacket(t *testing.T) {
606606 }
607607 require .NoError (t , err )
608608 // verify gas consumed
609- const storageCosts = storetypes .Gas (2903 )
610- assert .Equal (t , spec .expContractGas , ctx .GasMeter ().GasConsumed ()- before - storageCosts )
609+ const storageCosts = storetypes .Gas (3903 )
610+ assert .Equal (t , spec .expContractGas , ctx .GasMeter ().GasConsumed ()- before - storageCosts - types . DefaultInstanceCost )
611611 // verify msgs dispatched
612612 require .Len (t , * capturedMsgs , len (spec .contractResp .Messages ))
613613 for i , m := range spec .contractResp .Messages {
@@ -726,8 +726,8 @@ func TestOnTimeoutPacket(t *testing.T) {
726726 }
727727 require .NoError (t , err )
728728 // verify gas consumed
729- const storageCosts = storetypes .Gas (2903 )
730- assert .Equal (t , spec .expContractGas , ctx .GasMeter ().GasConsumed ()- before - storageCosts )
729+ const storageCosts = storetypes .Gas (3903 )
730+ assert .Equal (t , spec .expContractGas , ctx .GasMeter ().GasConsumed ()- before - storageCosts - types . DefaultInstanceCost )
731731 // verify msgs dispatched
732732 require .Len (t , * capturedMsgs , len (spec .contractResp .Messages ))
733733 for i , m := range spec .contractResp .Messages {
0 commit comments