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
1a7f3fa7
Unverified
Commit
1a7f3fa7
authored
Sep 02, 2021
by
vipwzw
Committed by
GitHub
Sep 02, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1027 from zhengjunhe/modify_log_level_for_evm_run
Modify log level for evm run
parents
2b013042
dcdc0324
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
evm.go
plugin/dapp/evm/commands/evm.go
+0
-1
interpreter.go
plugin/dapp/evm/executor/vm/runtime/interpreter.go
+0
-4
No files found.
plugin/dapp/evm/commands/evm.go
View file @
1a7f3fa7
...
@@ -402,7 +402,6 @@ func callContract(cmd *cobra.Command, args []string) {
...
@@ -402,7 +402,6 @@ func callContract(cmd *cobra.Command, args []string) {
toAddr
:=
address
.
ExecAddress
(
exector
)
toAddr
:=
address
.
ExecAddress
(
exector
)
tx
:=
&
types
.
Transaction
{
Execer
:
[]
byte
(
exector
),
Payload
:
types
.
Encode
(
&
action
),
Fee
:
0
,
To
:
toAddr
,
ChainID
:
chainID
}
tx
:=
&
types
.
Transaction
{
Execer
:
[]
byte
(
exector
),
Payload
:
types
.
Encode
(
&
action
),
Fee
:
0
,
To
:
toAddr
,
ChainID
:
chainID
}
tx
.
Fee
,
_
=
tx
.
GetRealFee
(
cfg
.
MinTxFeeRate
)
tx
.
Fee
,
_
=
tx
.
GetRealFee
(
cfg
.
MinTxFeeRate
)
if
tx
.
Fee
<
feeInt64
{
if
tx
.
Fee
<
feeInt64
{
tx
.
Fee
+=
feeInt64
tx
.
Fee
+=
feeInt64
...
...
plugin/dapp/evm/executor/vm/runtime/interpreter.go
View file @
1a7f3fa7
...
@@ -215,10 +215,6 @@ func (in *Interpreter) Run(contract *Contract, input []byte, readOnly bool) (ret
...
@@ -215,10 +215,6 @@ func (in *Interpreter) Run(contract *Contract, input []byte, readOnly bool) (ret
logged
=
true
logged
=
true
}
}
log15
.
Info
(
"operation.execute"
,
"op="
,
op
.
String
(),
"contract addr="
,
contract
.
self
.
Address
()
.
String
(),
"CallerAddress="
,
contract
.
CallerAddress
.
String
(),
"caller="
,
contract
.
caller
.
Address
()
.
String
())
// 执行具体的指令操作逻辑(合约执行的核心)
// 执行具体的指令操作逻辑(合约执行的核心)
res
,
err
=
operation
.
execute
(
&
pc
,
in
.
evm
,
callContext
)
res
,
err
=
operation
.
execute
(
&
pc
,
in
.
evm
,
callContext
)
// 如果本操作需要返回,则讲操作返回的结果最为合约执行的结果
// 如果本操作需要返回,则讲操作返回的结果最为合约执行的结果
...
...
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