We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd636f commit 182c0ceCopy full SHA for 182c0ce
staker/utils.gno
@@ -29,12 +29,6 @@ func poolKeyDivide(poolKey string) string {
29
return ufmt.Sprintf("%s:%s:%s", pToken1, pToken0, fee)
30
}
31
32
-func require(condition bool, message string) {
33
- if !condition {
34
- panic(message)
35
- }
36
-}
37
-
38
func a2u(addr std.Address) users.AddressOrName {
39
return users.AddressOrName(addr)
40
@@ -79,3 +73,15 @@ func requireUnsigned(x bigint, msg string) {
79
73
panic(msg)
80
74
81
75
76
+
77
+func require(condition bool, message string) {
78
+ if !condition {
+ panic(message)
+ }
+}
82
83
+func requireExist(exist bool, msg string) {
84
+ if !exist {
85
+ panic(msg)
86
87
0 commit comments