Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
54d03741
Commit
54d03741
authored
Nov 08, 2021
by
hezhengjun
Committed by
vipwzw
Nov 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove ForkEVMRevertErrFormat
parent
df3fc632
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
18 deletions
+8
-18
chain33.para.toml
chain33.para.toml
+0
-1
exec.go
plugin/dapp/evm/executor/exec.go
+8
-12
evm.go
plugin/dapp/evm/types/evm.go
+0
-2
types.go
plugin/dapp/evm/types/types.go
+0
-2
rpc_test.go
plugin/dapp/ticket/rpc/rpc_test.go
+0
-1
No files found.
chain33.para.toml
View file @
54d03741
...
...
@@ -309,7 +309,6 @@ ForkEVMFrozen=0
ForkEVMKVHash
=
0
ForkEVMYoloV1
=
0
ForkEVMTxGroup
=
0
ForkEVMRevertErrFormat
=
0
[fork.sub.blackwhite]
Enable
=
0
...
...
plugin/dapp/evm/executor/exec.go
View file @
54d03741
...
...
@@ -115,20 +115,16 @@ func (evm *EVMExecutor) innerExec(msg *common.Message, txHash []byte, index int,
log
.
Debug
(
logMsg
,
"caller address"
,
msg
.
From
()
.
String
(),
"contract address"
,
contractAddrStr
,
"exec name"
,
execName
,
"alias name"
,
msg
.
Alias
(),
"usedGas"
,
usedGas
,
"return data"
,
common
.
Bytes2Hex
(
ret
))
curVer
:=
evm
.
mStateDB
.
GetLastSnapshot
()
if
vmerr
!=
nil
{
if
cfg
.
IsDappFork
(
evm
.
GetHeight
(),
"evm"
,
evmtypes
.
ForkEVMRevertErrFormat
)
{
var
visiableOut
[]
byte
for
i
:=
0
;
i
<
len
(
ret
);
i
++
{
//显示[32,126]之间的字符
if
ret
[
i
]
<
32
||
ret
[
i
]
>
126
{
continue
}
visiableOut
=
append
(
visiableOut
,
ret
[
i
])
var
visiableOut
[]
byte
for
i
:=
0
;
i
<
len
(
ret
);
i
++
{
//显示[32,126]之间的字符
if
ret
[
i
]
<
32
||
ret
[
i
]
>
126
{
continue
}
ret
=
visiableOut
vmerr
=
errors
.
New
(
fmt
.
Sprintf
(
"%s,detail: %s"
,
vmerr
.
Error
(),
string
(
ret
)))
}
else
{
vmerr
=
errors
.
New
(
fmt
.
Sprintf
(
"%s,detail: %s"
,
vmerr
.
Error
(),
string
(
ret
)))
visiableOut
=
append
(
visiableOut
,
ret
[
i
])
}
ret
=
visiableOut
vmerr
=
errors
.
New
(
fmt
.
Sprintf
(
"%s,detail: %s"
,
vmerr
.
Error
(),
string
(
ret
)))
log
.
Error
(
"evm contract exec error"
,
"error info"
,
vmerr
,
"ret"
,
string
(
ret
))
return
receipt
,
vmerr
...
...
plugin/dapp/evm/types/evm.go
View file @
54d03741
...
...
@@ -42,8 +42,6 @@ func InitFork(cfg *types.Chain33Config) {
cfg
.
RegisterDappFork
(
ExecutorName
,
ForkEVMYoloV1
,
9500000
)
// EVM合约支持交易组
cfg
.
RegisterDappFork
(
ExecutorName
,
ForkEVMTxGroup
,
0
)
// EVM交易执行失败错误信息改进
cfg
.
RegisterDappFork
(
ExecutorName
,
ForkEVMRevertErrFormat
,
0
)
}
//InitExecutor ...
...
...
plugin/dapp/evm/types/types.go
View file @
54d03741
...
...
@@ -46,8 +46,6 @@ const (
ForkEVMYoloV1
=
"ForkEVMYoloV1"
//ForkEVMTxGroup 交易组中的交易通过GAS检查
ForkEVMTxGroup
=
"ForkEVMTxGroup"
//ForkEVMRevertErrFormat 执行失败错误信息格式
ForkEVMRevertErrFormat
=
"ForkEVMRevertErrFormat"
)
var
(
...
...
plugin/dapp/ticket/rpc/rpc_test.go
View file @
54d03741
...
...
@@ -333,7 +333,6 @@ ForkEVMFrozen=0
ForkEVMKVHash=0
ForkEVMYoloV1=0
ForkEVMTxGroup=0
ForkEVMRevertErrFormat=0
[fork.sub.blackwhite]
Enable=0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment