*: add data
to NEP11 Transfer
This commit is contained in:
parent
bb039ef035
commit
d0c64347ab
18 changed files with 163 additions and 100 deletions
12
cli/testdata/verify.go
vendored
12
cli/testdata/verify.go
vendored
|
@ -1,6 +1,9 @@
|
|||
package testdata
|
||||
|
||||
import "github.com/nspcc-dev/neo-go/pkg/interop"
|
||||
import (
|
||||
"github.com/nspcc-dev/neo-go/pkg/interop"
|
||||
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
||||
)
|
||||
|
||||
func Verify() bool {
|
||||
return true
|
||||
|
@ -8,3 +11,10 @@ func Verify() bool {
|
|||
|
||||
func OnNEP17Payment(from interop.Hash160, amount int, data interface{}) {
|
||||
}
|
||||
|
||||
// OnNEP11Payment notifies about NEP11 payment. You don't call this method directly,
|
||||
// instead it's called by NEP11 contract when you transfer funds from your address
|
||||
// to the address of this NFT contract.
|
||||
func OnNEP11Payment(from interop.Hash160, amount int, token []byte, data interface{}) {
|
||||
runtime.Notify("OnNEP11Payment", from, amount, token, data)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue