mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
core/tracing: go generate
This commit is contained in:
parent
fbcbab11cc
commit
a51692908b
3 changed files with 9 additions and 6 deletions
|
|
@ -31,8 +31,9 @@ const _BalanceChangeReason_name = "UnspecifiedBalanceIncreaseRewardMineUncleBala
|
||||||
var _BalanceChangeReason_index = [...]uint16{0, 11, 41, 71, 96, 125, 160, 181, 205, 231, 256, 264, 276, 303, 330, 361, 367}
|
var _BalanceChangeReason_index = [...]uint16{0, 11, 41, 71, 96, 125, 160, 181, 205, 231, 256, 264, 276, 303, 330, 361, 367}
|
||||||
|
|
||||||
func (i BalanceChangeReason) String() string {
|
func (i BalanceChangeReason) String() string {
|
||||||
if i >= BalanceChangeReason(len(_BalanceChangeReason_index)-1) {
|
idx := int(i) - 0
|
||||||
|
if i < 0 || idx >= len(_BalanceChangeReason_index)-1 {
|
||||||
return "BalanceChangeReason(" + strconv.FormatInt(int64(i), 10) + ")"
|
return "BalanceChangeReason(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||||
}
|
}
|
||||||
return _BalanceChangeReason_name[_BalanceChangeReason_index[i]:_BalanceChangeReason_index[i+1]]
|
return _BalanceChangeReason_name[_BalanceChangeReason_index[idx]:_BalanceChangeReason_index[idx+1]]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,9 @@ const _CodeChangeReason_name = "UnspecifiedContractCreationGenesisAuthorizationA
|
||||||
var _CodeChangeReason_index = [...]uint8{0, 11, 27, 34, 47, 65, 77, 83}
|
var _CodeChangeReason_index = [...]uint8{0, 11, 27, 34, 47, 65, 77, 83}
|
||||||
|
|
||||||
func (i CodeChangeReason) String() string {
|
func (i CodeChangeReason) String() string {
|
||||||
if i >= CodeChangeReason(len(_CodeChangeReason_index)-1) {
|
idx := int(i) - 0
|
||||||
|
if i < 0 || idx >= len(_CodeChangeReason_index)-1 {
|
||||||
return "CodeChangeReason(" + strconv.FormatInt(int64(i), 10) + ")"
|
return "CodeChangeReason(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||||
}
|
}
|
||||||
return _CodeChangeReason_name[_CodeChangeReason_index[i]:_CodeChangeReason_index[i+1]]
|
return _CodeChangeReason_name[_CodeChangeReason_index[idx]:_CodeChangeReason_index[idx+1]]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,9 @@ const _NonceChangeReason_name = "UnspecifiedGenesisEoACallContractCreatorNewCont
|
||||||
var _NonceChangeReason_index = [...]uint8{0, 11, 18, 25, 40, 51, 64, 70, 82}
|
var _NonceChangeReason_index = [...]uint8{0, 11, 18, 25, 40, 51, 64, 70, 82}
|
||||||
|
|
||||||
func (i NonceChangeReason) String() string {
|
func (i NonceChangeReason) String() string {
|
||||||
if i >= NonceChangeReason(len(_NonceChangeReason_index)-1) {
|
idx := int(i) - 0
|
||||||
|
if i < 0 || idx >= len(_NonceChangeReason_index)-1 {
|
||||||
return "NonceChangeReason(" + strconv.FormatInt(int64(i), 10) + ")"
|
return "NonceChangeReason(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||||
}
|
}
|
||||||
return _NonceChangeReason_name[_NonceChangeReason_index[i]:_NonceChangeReason_index[i+1]]
|
return _NonceChangeReason_name[_NonceChangeReason_index[idx]:_NonceChangeReason_index[idx+1]]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue