github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/cli/smartcontract/testdata/rpcbindings/invalid4/invalid.go (about) 1 package invalid4 2 3 import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" 4 5 type SomeStruct1 struct { 6 Field1 int 7 } 8 9 type SomeStruct2 struct { 10 Field2 string 11 } 12 13 func Main() { 14 // Inconsistent event params usages (different named types throughout the usages). 15 runtime.Notify("SomeEvent", SomeStruct1{Field1: 123}) 16 runtime.Notify("SomeEvent", SomeStruct2{Field2: "str"}) 17 }