Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
92b79e1d
Commit
92b79e1d
authored
Sep 25, 2017
by
yann300
Committed by
GitHub
Sep 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #817 from ethereum/fixStorage
rlp decode value before adding to cache
parents
c704745c
f1c9f969
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
execution-context.js
src/execution-context.js
+3
-1
No files found.
src/execution-context.js
View file @
92b79e1d
...
...
@@ -8,6 +8,7 @@ var ethUtil = require('ethereumjs-util')
var
StateManager
=
require
(
'ethereumjs-vm/lib/stateManager'
)
var
remix
=
require
(
'ethereum-remix'
)
var
Web3VMProvider
=
remix
.
web3
.
web3VMProvider
var
rlp
=
ethUtil
.
rlp
var
injectedProvider
...
...
@@ -45,9 +46,10 @@ class StateManagerCommonStorageDump extends StateManager {
var
storage
=
{}
var
stream
=
trie
.
createReadStream
()
stream
.
on
(
'data'
,
function
(
val
)
{
var
value
=
rlp
.
decode
(
val
.
value
)
storage
[
'0x'
+
val
.
key
.
toString
(
'hex'
)]
=
{
key
:
self
.
keyHashes
[
val
.
key
.
toString
(
'hex'
)],
value
:
'0x'
+
val
.
val
ue
.
toString
(
'hex'
)
value
:
'0x'
+
value
.
toString
(
'hex'
)
}
})
stream
.
on
(
'end'
,
function
()
{
...
...
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