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
b7fea53b
Commit
b7fea53b
authored
Jan 17, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename storageStore/memoryStore
parent
603eedc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
RefType.js
src/solidity/types/RefType.js
+4
-4
No files found.
src/solidity/types/RefType.js
View file @
b7fea53b
...
@@ -27,9 +27,9 @@ class RefType {
...
@@ -27,9 +27,9 @@ class RefType {
}
}
var
offset
=
stack
[
stack
.
length
-
1
-
stackDepth
]
var
offset
=
stack
[
stack
.
length
-
1
-
stackDepth
]
offset
=
parseInt
(
offset
,
16
)
offset
=
parseInt
(
offset
,
16
)
if
(
this
.
storageStor
e
())
{
if
(
this
.
isInStorag
e
())
{
return
this
.
decodeFromStorage
({
offset
:
0
,
slot
:
offset
},
storage
)
return
this
.
decodeFromStorage
({
offset
:
0
,
slot
:
offset
},
storage
)
}
else
if
(
this
.
memoryStore
())
{
}
else
if
(
this
.
isInMemory
())
{
return
this
.
decodeFromMemoryInternal
(
offset
,
memory
)
return
this
.
decodeFromMemoryInternal
(
offset
,
memory
)
}
else
{
}
else
{
return
{
error
:
'<decoding failed - no decoder for '
+
this
.
location
+
'>'
}
return
{
error
:
'<decoding failed - no decoder for '
+
this
.
location
+
'>'
}
...
@@ -54,7 +54,7 @@ class RefType {
...
@@ -54,7 +54,7 @@ class RefType {
*
*
* @return {Bool} - return true if the type is defined in the storage
* @return {Bool} - return true if the type is defined in the storage
*/
*/
storageStor
e
()
{
isInStorag
e
()
{
return
this
.
location
.
indexOf
(
'storage'
)
===
0
return
this
.
location
.
indexOf
(
'storage'
)
===
0
}
}
...
@@ -63,7 +63,7 @@ class RefType {
...
@@ -63,7 +63,7 @@ class RefType {
*
*
* @return {Bool} - return true if the type is defined in the memory
* @return {Bool} - return true if the type is defined in the memory
*/
*/
memoryStore
()
{
isInMemory
()
{
return
this
.
location
.
indexOf
(
'memory'
)
===
0
return
this
.
location
.
indexOf
(
'memory'
)
===
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