mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-29 23:33:37 +00:00
ce9d0b22cf
Standards are NEP-11 and NEP-17, not NEP11, not NEP17, not anything else. Variable/function names of course can use whatever fits, but documents and comments should be consistent wrt this.
20 lines
599 B
Go
20 lines
599 B
Go
package testdata
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/interop"
|
|
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
|
)
|
|
|
|
func Verify() bool {
|
|
return true
|
|
}
|
|
|
|
func OnNEP17Payment(from interop.Hash160, amount int, data interface{}) {
|
|
}
|
|
|
|
// OnNEP11Payment notifies about NEP-11 payment. You don't call this method directly,
|
|
// instead it's called by NEP-11 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)
|
|
}
|