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
d324c064
Commit
d324c064
authored
Aug 17, 2021
by
hezhengjun
Committed by
33cn
Aug 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor message interface
parent
465913bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
message.go
plugin/dapp/evm/executor/vm/common/message.go
+10
-10
No files found.
plugin/dapp/evm/executor/vm/common/message.go
View file @
d324c064
...
@@ -34,33 +34,33 @@ func NewMessage(from Address, to *Address, nonce int64, amount uint64, gasLimit
...
@@ -34,33 +34,33 @@ func NewMessage(from Address, to *Address, nonce int64, amount uint64, gasLimit
}
}
// From 来源
// From 来源
func
(
m
Message
)
From
()
Address
{
return
m
.
from
}
func
(
m
*
Message
)
From
()
Address
{
return
m
.
from
}
// To 目的地址
// To 目的地址
func
(
m
Message
)
To
()
*
Address
{
return
m
.
to
}
func
(
m
*
Message
)
To
()
*
Address
{
return
m
.
to
}
// GasPrice Gas价格
// GasPrice Gas价格
func
(
m
Message
)
GasPrice
()
uint32
{
return
m
.
gasPrice
}
func
(
m
*
Message
)
GasPrice
()
uint32
{
return
m
.
gasPrice
}
// Value 转账金额
// Value 转账金额
func
(
m
Message
)
Value
()
uint64
{
return
m
.
amount
}
func
(
m
*
Message
)
Value
()
uint64
{
return
m
.
amount
}
// Nonce nonce值
// Nonce nonce值
func
(
m
Message
)
Nonce
()
int64
{
return
m
.
nonce
}
func
(
m
*
Message
)
Nonce
()
int64
{
return
m
.
nonce
}
// Data 附带数据
// Data 附带数据
func
(
m
Message
)
Data
()
[]
byte
{
return
m
.
data
}
func
(
m
*
Message
)
Data
()
[]
byte
{
return
m
.
data
}
// GasLimit Gas限制
// GasLimit Gas限制
func
(
m
Message
)
GasLimit
()
uint64
{
return
m
.
gasLimit
}
func
(
m
*
Message
)
GasLimit
()
uint64
{
return
m
.
gasLimit
}
// GasLimit Gas限制
// GasLimit Gas限制
func
(
m
Message
)
SetGasLimit
(
gasLimit
uint64
)
{
func
(
m
*
Message
)
SetGasLimit
(
gasLimit
uint64
)
{
m
.
gasLimit
=
gasLimit
m
.
gasLimit
=
gasLimit
}
}
// Alias 合约别名
// Alias 合约别名
func
(
m
Message
)
Alias
()
string
{
return
m
.
alias
}
func
(
m
*
Message
)
Alias
()
string
{
return
m
.
alias
}
// Para 合约参数
// Para 合约参数
func
(
m
Message
)
Para
()
[]
byte
{
return
m
.
para
}
func
(
m
*
Message
)
Para
()
[]
byte
{
return
m
.
para
}
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