[#XX] Added GetNumber contract
It always returns 42. Signed-off-by: Lebedeva Ekaterina <ekaterina.lebedeva@yadro.com>
This commit is contained in:
parent
099b1cb9f1
commit
fa1b1efbb6
3 changed files with 9 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -8,6 +8,7 @@
|
||||||
*.dll
|
*.dll
|
||||||
*.so
|
*.so
|
||||||
*.dylib
|
*.dylib
|
||||||
|
**/*.nef
|
||||||
|
|
||||||
# Test binary, built with `go test -c`
|
# Test binary, built with `go test -c`
|
||||||
*.test
|
*.test
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package FirstContract
|
package contract
|
||||||
|
|
||||||
import "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
import "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
||||||
|
|
||||||
|
@ -13,3 +13,8 @@ func init() {
|
||||||
func RuntimeNotify(args []interface{}) {
|
func RuntimeNotify(args []interface{}) {
|
||||||
runtime.Notify(notificationName, args)
|
runtime.Notify(notificationName, args)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// the answer to the “Great Question” of “Life, the Universe and Everything”
|
||||||
|
func GetNumber() int {
|
||||||
|
return 42
|
||||||
|
}
|
Loading…
Reference in a new issue