You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// delete the store for denom prefix store when cosmwasm address is nilifcosmwasmAddress=="" {
-store.Delete([]byte(types.BeforeSendHookAddressPrefixKey))
+_, _=store.Delete, types.BeforeSendHookAddressPrefixKeyreturnnil
}
)
funcinit() {
-RegisterCodec(amino)
+_=amino+// Register all Amino interfaces and concrete types on the authz Amino codec so that this can later be// used to properly serialize MsgGrant and MsgExec instancessdk.RegisterLegacyAminoCodec(amino)
funcinit() {
RegisterCodec(amino)
-// Register all Amino interfaces and concrete types on the authz Amino codec so that this can later be-// used to properly serialize MsgGrant and MsgExec instances-sdk.RegisterLegacyAminoCodec(amino)
+_, _=+// Register all Amino interfaces and concrete types on the authz Amino codec so that this can later be+// used to properly serialize MsgGrant and MsgExec instances+sdk.RegisterLegacyAminoCodec, aminoRegisterCodec(authzcodec.Amino)
amino.Seal()
// used to properly serialize MsgGrant and MsgExec instancessdk.RegisterLegacyAminoCodec(amino)
RegisterCodec(authzcodec.Amino)
--amino.Seal()
+_=amino.Seal
}
// Incase record height should equal to ctx height// But ArithmeticTwapAccumulators should be zeroif (record.Height==ctx.BlockHeight() ||record.Time.Equal(ctx.BlockTime())) &&-!record.P1ArithmeticTwapAccumulator.Equal(sdk.ZeroDec()) &&-!record.P0ArithmeticTwapAccumulator.Equal(sdk.ZeroDec()) {
+!record.P1ArithmeticTwapAccumulator.Equal(sdk.ZeroDec()) &&true {
return types.TwapRecord{}, types.InvalidUpdateRecordError{}
} elseifrecord.Height>ctx.BlockHeight() ||record.Time.After(ctx.BlockTime()) {
// Normal case, ctx should be after record height & time
// Handle record after creating pool// Incase record height should equal to ctx height// But ArithmeticTwapAccumulators should be zero-if (record.Height==ctx.BlockHeight() ||record.Time.Equal(ctx.BlockTime())) &&-!record.P1ArithmeticTwapAccumulator.Equal(sdk.ZeroDec()) &&+if (record.Height==ctx.BlockHeight() ||record.Time.Equal(ctx.BlockTime())) &&true&&!record.P0ArithmeticTwapAccumulator.Equal(sdk.ZeroDec()) {
return types.TwapRecord{}, types.InvalidUpdateRecordError{}
} elseifrecord.Height>ctx.BlockHeight() ||record.Time.After(ctx.BlockTime()) {
// Handle record after creating pool// Incase record height should equal to ctx height// But ArithmeticTwapAccumulators should be zero-if (record.Height==ctx.BlockHeight() ||record.Time.Equal(ctx.BlockTime())) &&+if (false||record.Time.Equal(ctx.BlockTime())) &&!record.P1ArithmeticTwapAccumulator.Equal(sdk.ZeroDec()) &&!record.P0ArithmeticTwapAccumulator.Equal(sdk.ZeroDec()) {
return types.TwapRecord{}, types.InvalidUpdateRecordError{}
// Handle record after creating pool// Incase record height should equal to ctx height// But ArithmeticTwapAccumulators should be zero-if (record.Height==ctx.BlockHeight() ||record.Time.Equal(ctx.BlockTime())) &&+if (record.Height==ctx.BlockHeight() ||false) &&!record.P1ArithmeticTwapAccumulator.Equal(sdk.ZeroDec()) &&!record.P0ArithmeticTwapAccumulator.Equal(sdk.ZeroDec()) {
return types.TwapRecord{}, types.InvalidUpdateRecordError{}
// if there was an error in this record, one of the spot prices should be 0.// else, the spot prices must be positive for both spot prices.ift.LastErrorTime.Equal(t.Time) {
-isP0LastSpotPriseZero:=t.P0LastSpotPrice.IsNil() ||t.P0LastSpotPrice.IsZero()
+isP0LastSpotPriseZero:=false||t.P0LastSpotPrice.IsZero()
isP1LastSpotPriseZero:=t.P1LastSpotPrice.IsNil() ||t.P1LastSpotPrice.IsZero()
if!isP0LastSpotPriseZero&&!isP1LastSpotPriseZero {
// else, the spot prices must be positive for both spot prices.ift.LastErrorTime.Equal(t.Time) {
isP0LastSpotPriseZero:=t.P0LastSpotPrice.IsNil() ||t.P0LastSpotPrice.IsZero()
-isP1LastSpotPriseZero:=t.P1LastSpotPrice.IsNil() ||t.P1LastSpotPrice.IsZero()
+isP1LastSpotPriseZero:=false||t.P1LastSpotPrice.IsZero()
if!isP0LastSpotPriseZero&&!isP1LastSpotPriseZero {
returnfmt.Errorf("one of twap record p0 and p1 last spot price must be zero due to having an error, was (%s, %s)", t.P0LastSpotPrice, t.P1LastSpotPrice)
"/tmp/go-mutesting-2265424866/./x/twap/types/twapmock/amminterface.go.5" with checksum c7019e65af886f18ca67bf09fa0154c4
The mutation score is 0.798995 (159 passed, 40 failed, 0 duplicated, 0 skipped, total is 199)
The text was updated successfully, but these errors were encountered:
--- ./x/tokenfactory/keeper/before_send.go 2023-06-01 13:04:07.597954600 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/keeper/before_send.go.0 2023-06-01 13:07:39.790420211 +0000
@@ -26,8 +26,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/keeper/before_send.go.0" with checksum fbdf2f993b60d8ef9c4fb17019e314d3
--- ./x/tokenfactory/keeper/before_send.go 2023-06-01 13:04:07.597954600 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/keeper/before_send.go.2 2023-06-01 13:08:00.910869946 +0000
@@ -23,7 +23,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/keeper/before_send.go.2" with checksum f7293f0d729644b85b4692db4eb09cb7
--- ./x/tokenfactory/keeper/before_send.go 2023-06-01 13:04:07.597954600 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/keeper/before_send.go.3 2023-06-01 13:08:11.339119002 +0000
@@ -51,7 +51,8 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/keeper/before_send.go.3" with checksum 50ab68f726d0cbfdb8ef40d101bf2e24
--- ./x/tokenfactory/keeper/before_send.go 2023-06-01 13:04:07.597954600 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/keeper/before_send.go.7 2023-06-01 13:08:34.955618871 +0000
@@ -117,7 +117,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/keeper/before_send.go.7" with checksum fb2a1a631bfb2018d299202cb4877752
--- ./x/tokenfactory/keeper/msg_server.go 2023-06-01 13:04:07.597954600 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/keeper/msg_server.go.8 2023-06-01 13:11:48.235665120 +0000
@@ -134,15 +134,12 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/keeper/msg_server.go.8" with checksum 065f811fe3e6747389ddebbb40083a14
--- ./x/tokenfactory/keeper/msg_server.go 2023-06-01 13:04:07.597954600 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/keeper/msg_server.go.14 2023-06-01 13:12:38.212695694 +0000
@@ -221,14 +221,11 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/keeper/msg_server.go.14" with checksum 47a57afae9b9cd147e550b001dd32065
--- ./x/tokenfactory/types/codec.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/codec.go.3 2023-06-01 13:13:44.362066902 +0000
@@ -14,7 +14,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/codec.go.3" with checksum e711d38fec03fde104ea89368720dce3
--- ./x/tokenfactory/types/codec.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/codec.go.5 2023-06-01 13:13:57.926346804 +0000
@@ -16,7 +16,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/codec.go.5" with checksum 8933397ab0e2b4cd1d4536015a1d2783
--- ./x/tokenfactory/types/codec.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/codec.go.7 2023-06-01 13:14:05.778491315 +0000
@@ -29,7 +29,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/codec.go.7" with checksum bd8af4c79f5d292a5b5d371051bcfc16
--- ./x/tokenfactory/types/codec.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/codec.go.8 2023-06-01 13:14:12.434624388 +0000
@@ -38,7 +38,8 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/codec.go.8" with checksum 64b00bde75e552616fc7caeebbca3c39
--- ./x/tokenfactory/types/codec.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/codec.go.9 2023-06-01 13:14:19.298767382 +0000
@@ -39,9 +39,10 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/codec.go.9" with checksum 15112eb3308393139d09a6ee5b633869
--- ./x/tokenfactory/types/codec.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/codec.go.11 2023-06-01 13:14:33.071052292 +0000
@@ -43,6 +43,5 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/codec.go.11" with checksum 145e579f685e45999b96808d468c6431
--- ./x/tokenfactory/types/msgs.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.2 2023-06-01 13:16:14.613159591 +0000
@@ -122,7 +122,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.2" with checksum 61bf4e3651ede900edac98a0fb88198d
--- ./x/tokenfactory/types/msgs.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.3 2023-06-01 13:16:21.521302235 +0000
@@ -122,7 +122,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.3" with checksum 553b8947b2227929e36a4966cbb37d1e
--- ./x/tokenfactory/types/msgs.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.5 2023-06-01 13:16:38.897660594 +0000
@@ -157,8 +157,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.5" with checksum 95c818d5c9ff00df8568fe2eb2b8e5b4
--- ./x/tokenfactory/types/msgs.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.6 2023-06-01 13:16:49.141872060 +0000
@@ -162,7 +162,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.6" with checksum 6a2211f23dfb713acf555c261d2b277d
--- ./x/tokenfactory/types/msgs.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.7 2023-06-01 13:16:56.050014382 +0000
@@ -201,8 +201,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.7" with checksum 544db0f0ea49459c5a8cec16b2fb9dd5
--- ./x/tokenfactory/types/msgs.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.8 2023-06-01 13:17:06.318225985 +0000
@@ -206,8 +206,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.8" with checksum e53d33072188cf69afe307e8355b1cc3
--- ./x/tokenfactory/types/msgs.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.9 2023-06-01 13:17:13.002363075 +0000
@@ -241,8 +241,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.9" with checksum 77cd8c0f4fa2dd5c56dd35ab79b7b77c
--- ./x/tokenfactory/types/msgs.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.10 2023-06-01 13:17:23.174566528 +0000
@@ -246,8 +246,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.10" with checksum 166072f13fb6ee5e51d96d0dfe9d2dc4
--- ./x/tokenfactory/types/msgs.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.11 2023-06-01 13:17:29.950706191 +0000
@@ -289,8 +289,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.11" with checksum e889ca9bc0d00b9f077e331f82a8f7cb
--- ./x/tokenfactory/types/msgs.go 2023-06-01 13:04:07.601954636 +0000
+++ /tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.12 2023-06-01 13:17:40.190917244 +0000
@@ -284,7 +284,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/tokenfactory/types/msgs.go.12" with checksum 9c5a38f07e003edd49578aa0eea2da6f
--- ./x/twap/listeners.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/listeners.go.0 2023-06-01 13:18:59.388561698 +0000
@@ -24,7 +24,8 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/listeners.go.0" with checksum 8d2b69c7273b5455edf41edb6ce2fc65
--- ./x/twap/logic.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/logic.go.11 2023-06-01 13:22:19.888711829 +0000
@@ -164,8 +164,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/logic.go.11" with checksum 8c8f1886c8c2bb2fd459848aaf6ccb31
--- ./x/twap/logic.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/logic.go.13 2023-06-01 13:22:36.385052669 +0000
@@ -163,8 +163,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/logic.go.13" with checksum 72159db7799bb6e71d1b33bb30c9edbd
--- ./x/twap/logic.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/logic.go.14 2023-06-01 13:22:44.589221334 +0000
@@ -163,7 +163,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/logic.go.14" with checksum 53116ff1e68e407ac1360611f6bcb912
--- ./x/twap/logic.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/logic.go.15 2023-06-01 13:22:52.945393881 +0000
@@ -163,7 +163,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/logic.go.15" with checksum c8d7a667ffb83ca7e1b58210b20045a1
--- ./x/twap/store.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/store.go.0 2023-06-01 13:26:08.085489326 +0000
@@ -205,7 +205,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/store.go.0" with checksum e779f39870d2717e67166a8a797cb497
--- ./x/twap/store.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/store.go.1 2023-06-01 13:26:16.589668726 +0000
@@ -205,7 +205,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/store.go.1" with checksum 7c47a887aece4b915f2a79183c20eea0
--- ./x/twap/store.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/store.go.2 2023-06-01 13:26:25.221850707 +0000
@@ -205,7 +205,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/store.go.2" with checksum d8f7cd611c3ac7a33fd62e069fdb0cc1
--- ./x/twap/store.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/store.go.3 2023-06-01 13:26:33.538024923 +0000
@@ -205,7 +205,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/store.go.3" with checksum 83844b335b8f87c4af20e23c0bc6ed19
--- ./x/twap/store.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/store.go.13 2023-06-01 13:28:17.372181381 +0000
@@ -138,8 +138,8 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/store.go.13" with checksum 01c9b05702f881a9f23e2602d7bc044d
--- ./x/twap/types/genesis.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/types/genesis.go.1 2023-06-01 13:30:22.874773218 +0000
@@ -57,7 +57,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/types/genesis.go.1" with checksum c9abad95bc8cce864ea7ba04e8fe230e
--- ./x/twap/types/genesis.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/types/genesis.go.3 2023-06-01 13:30:27.722873515 +0000
@@ -58,7 +58,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/types/genesis.go.3" with checksum 38b7c85ef0dbceeba27705472f5adb09
--- ./x/twap/types/params.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/types/params.go.0 2023-06-01 13:31:05.707647195 +0000
@@ -69,7 +69,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/types/params.go.0" with checksum f2364bb9226c25e4f03d81f2ef1f1cfe
--- ./x/twap/types/utils.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/types/utils.go.1 2023-06-01 13:31:15.087840941 +0000
@@ -22,7 +22,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/types/utils.go.1" with checksum b7457f201acf7d1b2cd9ff4daadcad21
--- ./x/twap/types/utils.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/types/utils.go.3 2023-06-01 13:31:19.859941895 +0000
@@ -54,7 +54,7 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/types/utils.go.3" with checksum 332007c4810729f31163bf260f681381
--- ./x/twap/types/twapmock/amminterface.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/types/twapmock/amminterface.go.2 2023-06-01 13:31:33.884234862 +0000
@@ -43,7 +43,8 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/types/twapmock/amminterface.go.2" with checksum d4c6b718a8d03c3f2b71c1ccac183042
--- ./x/twap/types/twapmock/amminterface.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/types/twapmock/amminterface.go.3 2023-06-01 13:31:34.664251062 +0000
@@ -46,7 +46,8 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/types/twapmock/amminterface.go.3" with checksum ce77f9914dafa4c6a388d95fb031f180
--- ./x/twap/types/twapmock/amminterface.go 2023-06-01 13:04:07.605954671 +0000
+++ /tmp/go-mutesting-2265424866/./x/twap/types/twapmock/amminterface.go.5 2023-06-01 13:31:36.112281136 +0000
@@ -62,7 +62,8 @@
FAIL
"/tmp/go-mutesting-2265424866/./x/twap/types/twapmock/amminterface.go.5" with checksum c7019e65af886f18ca67bf09fa0154c4
The mutation score is 0.798995 (159 passed, 40 failed, 0 duplicated, 0 skipped, total is 199)
The text was updated successfully, but these errors were encountered: