mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 03:38:35 +00:00
c2b3ee3d8e
This allows to reuse it across different packages. testchain can't be used because of circular dependencies. Init() is not changed except for filepath.Join() use instead of direct string appends which is a better approach anyway. rootpath is required because current directory will change from package to package.
7 lines
244 B
Go
7 lines
244 B
Go
package verify_args
|
|
|
|
// Verify is a verification contract method which takes several arguments.
|
|
func Verify(argString string, argInt int, argBool bool) bool {
|
|
isOK := argString == "good_string" || argInt == 5 || argBool == true
|
|
return isOK
|
|
}
|