Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
张蕾
Geth-Modification
Commits
af6875f4
Commit
af6875f4
authored
May 05, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed to lower case
parent
66af7490
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
vm_test.go
ethchain/vm_test.go
+8
-8
No files found.
ethchain/vm_test.go
View file @
af6875f4
...
@@ -86,7 +86,7 @@ func TestRun4(t *testing.T) {
...
@@ -86,7 +86,7 @@ func TestRun4(t *testing.T) {
int32 a = 10
int32 a = 10
int32 b = 20
int32 b = 20
if a > b {
if a > b {
int32 c = this.
C
aller()
int32 c = this.
c
aller()
}
}
Exit()
Exit()
`
),
false
)
`
),
false
)
...
@@ -98,21 +98,21 @@ func TestRun4(t *testing.T) {
...
@@ -98,21 +98,21 @@ func TestRun4(t *testing.T) {
callerScript
,
err
:=
mutan
.
Compile
(
strings
.
NewReader
(
`
callerScript
,
err
:=
mutan
.
Compile
(
strings
.
NewReader
(
`
// Check if there's any cash in the initial store
// Check if there's any cash in the initial store
if store[1000] == 0 {
if
this.
store[1000] == 0 {
store[1000] = 10^20
this.
store[1000] = 10^20
}
}
store[1001] = this.V
alue() * 20
this.store[1001] = this.v
alue() * 20
store[this.Origin()] = store[this.O
rigin()] + 1000
this.store[this.origin()] = this.store[this.o
rigin()] + 1000
if store[1001] > 20 {
if
this.
store[1001] > 20 {
store[1001] = 10^50
this.
store[1001] = 10^50
}
}
int8 ret = 0
int8 ret = 0
int8 arg = 10
int8 arg = 10
C
all(0xe6a12555fad1fb6eaaaed69001a87313d1fd7b54, 0, 100, arg, ret)
c
all(0xe6a12555fad1fb6eaaaed69001a87313d1fd7b54, 0, 100, arg, ret)
big t
big t
for int8 i = 0; i < 10; i++ {
for int8 i = 0; i < 10; i++ {
...
...
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