mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 03:47:18 +00:00
9875799893
See neo-project/neo#2622. The implementation is somewhat asymmetric (and not very efficient) for binary/JSON encoding/decoding, but it should be sufficient.
24 lines
680 B
Go
24 lines
680 B
Go
// Code generated by "stringer -type=WitnessAction -linecomment"; DO NOT EDIT.
|
|
|
|
package transaction
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[WitnessDeny-0]
|
|
_ = x[WitnessAllow-1]
|
|
}
|
|
|
|
const _WitnessAction_name = "DenyAllow"
|
|
|
|
var _WitnessAction_index = [...]uint8{0, 4, 9}
|
|
|
|
func (i WitnessAction) String() string {
|
|
if i >= WitnessAction(len(_WitnessAction_index)-1) {
|
|
return "WitnessAction(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _WitnessAction_name[_WitnessAction_index[i]:_WitnessAction_index[i+1]]
|
|
}
|