Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
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
exchain
nebula
Commits
2508c083
Commit
2508c083
authored
Jan 19, 2022
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l2geth: update types to have access lists
parent
235c7af1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
16 deletions
+20
-16
simulated.go
l2geth/accounts/abi/bind/backends/simulated.go
+9
-8
transaction.go
l2geth/core/types/transaction.go
+11
-8
No files found.
l2geth/accounts/abi/bind/backends/simulated.go
View file @
2508c083
...
@@ -600,6 +600,7 @@ func (m callmsg) GasPrice() *big.Int { return m.CallMsg.GasPrice }
...
@@ -600,6 +600,7 @@ func (m callmsg) GasPrice() *big.Int { return m.CallMsg.GasPrice }
func
(
m
callmsg
)
Gas
()
uint64
{
return
m
.
CallMsg
.
Gas
}
func
(
m
callmsg
)
Gas
()
uint64
{
return
m
.
CallMsg
.
Gas
}
func
(
m
callmsg
)
Value
()
*
big
.
Int
{
return
m
.
CallMsg
.
Value
}
func
(
m
callmsg
)
Value
()
*
big
.
Int
{
return
m
.
CallMsg
.
Value
}
func
(
m
callmsg
)
Data
()
[]
byte
{
return
m
.
CallMsg
.
Data
}
func
(
m
callmsg
)
Data
()
[]
byte
{
return
m
.
CallMsg
.
Data
}
func
(
m
callmsg
)
AccessList
()
types
.
AccessList
{
return
m
.
CallMsg
.
AccessList
}
// UsingOVM
// UsingOVM
// These getters return OVM specific fields
// These getters return OVM specific fields
...
...
l2geth/core/types/transaction.go
View file @
2508c083
...
@@ -479,6 +479,7 @@ type Message struct {
...
@@ -479,6 +479,7 @@ type Message struct {
gasPrice
*
big
.
Int
gasPrice
*
big
.
Int
data
[]
byte
data
[]
byte
checkNonce
bool
checkNonce
bool
accessList
AccessList
l1Timestamp
uint64
l1Timestamp
uint64
l1BlockNumber
*
big
.
Int
l1BlockNumber
*
big
.
Int
...
@@ -495,6 +496,7 @@ func NewMessage(from common.Address, to *common.Address, nonce uint64, amount *b
...
@@ -495,6 +496,7 @@ func NewMessage(from common.Address, to *common.Address, nonce uint64, amount *b
gasPrice
:
gasPrice
,
gasPrice
:
gasPrice
,
data
:
data
,
data
:
data
,
checkNonce
:
checkNonce
,
checkNonce
:
checkNonce
,
accessList
:
AccessList
{},
l1Timestamp
:
l1Timestamp
,
l1Timestamp
:
l1Timestamp
,
l1BlockNumber
:
l1BlockNumber
,
l1BlockNumber
:
l1BlockNumber
,
...
@@ -510,6 +512,7 @@ func (m Message) Gas() uint64 { return m.gasLimit }
...
@@ -510,6 +512,7 @@ func (m Message) Gas() uint64 { return m.gasLimit }
func
(
m
Message
)
Nonce
()
uint64
{
return
m
.
nonce
}
func
(
m
Message
)
Nonce
()
uint64
{
return
m
.
nonce
}
func
(
m
Message
)
Data
()
[]
byte
{
return
m
.
data
}
func
(
m
Message
)
Data
()
[]
byte
{
return
m
.
data
}
func
(
m
Message
)
CheckNonce
()
bool
{
return
m
.
checkNonce
}
func
(
m
Message
)
CheckNonce
()
bool
{
return
m
.
checkNonce
}
func
(
m
Message
)
AccessList
()
AccessList
{
return
m
.
accessList
}
func
(
m
Message
)
L1Timestamp
()
uint64
{
return
m
.
l1Timestamp
}
func
(
m
Message
)
L1Timestamp
()
uint64
{
return
m
.
l1Timestamp
}
func
(
m
Message
)
L1BlockNumber
()
*
big
.
Int
{
return
m
.
l1BlockNumber
}
func
(
m
Message
)
L1BlockNumber
()
*
big
.
Int
{
return
m
.
l1BlockNumber
}
...
...
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