neo-go/pkg/core/transaction/witnessaction_string.go
Roman Khimov 9875799893 transaction: add new Rules witness scope
See neo-project/neo#2622. The implementation is somewhat asymmetric (and not
very efficient) for binary/JSON encoding/decoding, but it should be
sufficient.
2021-11-12 15:29:28 +03:00

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]]
}