[#XX] Added GetNumber contract

It always returns 42.

Signed-off-by: Lebedeva Ekaterina <ekaterina.lebedeva@yadro.com>
This commit is contained in:
Ekaterina Lebedeva 2023-07-13 16:00:15 +03:00
parent 099b1cb9f1
commit fa1b1efbb6
3 changed files with 9 additions and 3 deletions

1
.gitignore vendored
View file

@ -8,6 +8,7 @@
*.dll
*.so
*.dylib
**/*.nef
# Test binary, built with `go test -c`
*.test

View file

@ -1,4 +1,4 @@
package FirstContract
package contract
import "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
@ -13,3 +13,8 @@ func init() {
func RuntimeNotify(args []interface{}) {
runtime.Notify(notificationName, args)
}
// the answer to the “Great Question” of “Life, the Universe and Everything”
func GetNumber() int {
return 42
}