forked from TrueCloudLab/neoneo-go
b6b8542caf
* refactored structs so the scope is not needed anymore + fix passing struct in func arguments. * implemented byte arrays and added runtime tests * Added sc examples in compiler README + added quick nested if test. * Updated README * Changed import paths to interop layer
9 lines
166 B
Go
9 lines
166 B
Go
package types
|
|
|
|
// Block represents a block in the blockchain.
|
|
type Block struct{}
|
|
|
|
// Index returns the height of the block.
|
|
func (b Block) Index() int {
|
|
return 0
|
|
}
|