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
492e5049
Commit
492e5049
authored
Jul 03, 2015
by
zelig
Committed by
Jeffrey Wilcke
Jul 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename js methods in js_test for new console API
+ rebase fixes
parent
042c3290
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
461 deletions
+7
-461
js.go
cmd/console/js.go
+0
-454
js_test.go
cmd/geth/js_test.go
+7
-7
No files found.
cmd/console/js.go
deleted
100644 → 0
View file @
042c3290
This diff is collapsed.
Click to expand it.
cmd/geth/js_test.go
View file @
492e5049
...
...
@@ -254,7 +254,7 @@ func TestSignature(t *testing.T) {
}
func
TestContract
(
t
*
testing
.
T
)
{
t
.
Skip
(
"contract testing is implemented with mining in ethash test mode. This takes about 7seconds to run. Unskip and run on demand"
)
//
t.Skip("contract testing is implemented with mining in ethash test mode. This takes about 7seconds to run. Unskip and run on demand")
tmp
,
repl
,
ethereum
:=
testJEthRE
(
t
)
if
err
:=
ethereum
.
Start
();
err
!=
nil
{
t
.
Errorf
(
"error starting ethereum: %v"
,
err
)
...
...
@@ -285,7 +285,7 @@ func TestContract(t *testing.T) {
` }\n`
+
`}\n`
if
checkEvalJSON
(
t
,
repl
,
`admin.
contractInfo.stop
()`
,
`true`
)
!=
nil
{
if
checkEvalJSON
(
t
,
repl
,
`admin.
stopNatSpec
()`
,
`true`
)
!=
nil
{
return
}
...
...
@@ -355,7 +355,7 @@ multiply7 = Multiply7.at(contractaddress);
return
}
if
checkEvalJSON
(
t
,
repl
,
`admin.
contractInfo.start
()`
,
`true`
)
!=
nil
{
if
checkEvalJSON
(
t
,
repl
,
`admin.
startNatSpec
()`
,
`true`
)
!=
nil
{
return
}
if
checkEvalJSON
(
t
,
repl
,
`multiply7.multiply.sendTransaction(6, { from: primary })`
,
`"0xcb08355dff8f8cadb5dc3d72e652ef5c33792cb0d871229dd1aef5db1c4ba1f2"`
)
!=
nil
{
...
...
@@ -381,17 +381,17 @@ multiply7 = Multiply7.at(contractaddress);
if
checkEvalJSON
(
t
,
repl
,
`filename = "/tmp/info.json"`
,
`"/tmp/info.json"`
)
!=
nil
{
return
}
if
checkEvalJSON
(
t
,
repl
,
`contentHash = admin.
contractInfo.
saveInfo(contract.info, filename)`
,
contentHash
)
!=
nil
{
if
checkEvalJSON
(
t
,
repl
,
`contentHash = admin.saveInfo(contract.info, filename)`
,
contentHash
)
!=
nil
{
return
}
if
checkEvalJSON
(
t
,
repl
,
`admin.
contractInfo.
register(primary, contractaddress, contentHash)`
,
`true`
)
!=
nil
{
if
checkEvalJSON
(
t
,
repl
,
`admin.register(primary, contractaddress, contentHash)`
,
`true`
)
!=
nil
{
return
}
if
checkEvalJSON
(
t
,
repl
,
`admin.
contractInfo.
registerUrl(primary, contentHash, "file://"+filename)`
,
`true`
)
!=
nil
{
if
checkEvalJSON
(
t
,
repl
,
`admin.registerUrl(primary, contentHash, "file://"+filename)`
,
`true`
)
!=
nil
{
return
}
if
checkEvalJSON
(
t
,
repl
,
`admin.
contractInfo.start
()`
,
`true`
)
!=
nil
{
if
checkEvalJSON
(
t
,
repl
,
`admin.
startNatSpec
()`
,
`true`
)
!=
nil
{
return
}
...
...
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