mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-30 09:33:36 +00:00
ed45ff98e3
Closes #913. Provide package info in the funcScope to check if function is defined insided an interop package. As a good side-effect bytecode for builtins from `util` is no longer emitted. Related #941.
9 lines
183 B
Go
9 lines
183 B
Go
package block
|
|
|
|
// Block is opaque type.
|
|
type Block struct{}
|
|
|
|
// GetTransactionCount is a mirror of `GetTransactionCount` interop.
|
|
func GetTransactionCount(b Block) int {
|
|
return 42
|
|
}
|