diff --git a/pkg/smartcontract/trigger/trigger_type.go b/pkg/smartcontract/trigger/trigger_type.go index 70c1a221a..2e929c346 100644 --- a/pkg/smartcontract/trigger/trigger_type.go +++ b/pkg/smartcontract/trigger/trigger_type.go @@ -25,5 +25,5 @@ const ( Application Type = 0x40 // All represents any trigger type. - All = System | Verification | Application + All Type = System | Verification | Application ) diff --git a/pkg/smartcontract/trigger/trigger_type_string.go b/pkg/smartcontract/trigger/trigger_type_string.go index b91698c75..55430ab06 100644 --- a/pkg/smartcontract/trigger/trigger_type_string.go +++ b/pkg/smartcontract/trigger/trigger_type_string.go @@ -11,12 +11,14 @@ func _() { _ = x[System-1] _ = x[Verification-32] _ = x[Application-64] + _ = x[All-97] } const ( _Type_name_0 = "System" _Type_name_1 = "Verification" _Type_name_2 = "Application" + _Type_name_3 = "All" ) func (i Type) String() string { @@ -27,6 +29,8 @@ func (i Type) String() string { return _Type_name_1 case i == 64: return _Type_name_2 + case i == 97: + return _Type_name_3 default: return "Type(" + strconv.FormatInt(int64(i), 10) + ")" }