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
22893b7a
Commit
22893b7a
authored
Mar 16, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed compile
parent
3cf51d54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
22 deletions
+4
-22
bindings.go
cmd/mist/bindings.go
+3
-12
ui_lib.go
cmd/mist/ui_lib.go
+1
-10
No files found.
cmd/mist/bindings.go
View file @
22893b7a
...
@@ -26,8 +26,8 @@ import (
...
@@ -26,8 +26,8 @@ import (
"strconv"
"strconv"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/state"
"github.com/ethereum/go-ethereum/state"
)
)
...
@@ -37,18 +37,9 @@ type plugin struct {
...
@@ -37,18 +37,9 @@ type plugin struct {
}
}
func
(
gui
*
Gui
)
Transact
(
from
,
recipient
,
value
,
gas
,
gasPrice
,
d
string
)
(
string
,
error
)
{
func
(
gui
*
Gui
)
Transact
(
from
,
recipient
,
value
,
gas
,
gasPrice
,
d
string
)
(
string
,
error
)
{
var
data
string
d
=
common
.
Bytes2Hex
(
utils
.
FormatTransactionData
(
d
))
if
len
(
recipient
)
==
0
{
code
,
err
:=
common
.
Compile
(
d
,
false
)
if
err
!=
nil
{
return
""
,
err
}
data
=
common
.
Bytes2Hex
(
code
)
}
else
{
data
=
common
.
Bytes2Hex
(
utils
.
FormatTransactionData
(
d
))
}
return
gui
.
xeth
.
Transact
(
from
,
recipient
,
value
,
gas
,
gasPrice
,
d
ata
)
return
gui
.
xeth
.
Transact
(
from
,
recipient
,
value
,
gas
,
gasPrice
,
d
)
}
}
func
(
self
*
Gui
)
AddPlugin
(
pluginPath
string
)
{
func
(
self
*
Gui
)
AddPlugin
(
pluginPath
string
)
{
...
...
cmd/mist/ui_lib.go
View file @
22893b7a
...
@@ -25,9 +25,9 @@ import (
...
@@ -25,9 +25,9 @@ import (
"io/ioutil"
"io/ioutil"
"path"
"path"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/event/filter"
"github.com/ethereum/go-ethereum/event/filter"
"github.com/ethereum/go-ethereum/javascript"
"github.com/ethereum/go-ethereum/javascript"
"github.com/ethereum/go-ethereum/xeth"
"github.com/ethereum/go-ethereum/xeth"
...
@@ -137,15 +137,6 @@ func (self *UiLib) Transact(params map[string]interface{}) (string, error) {
...
@@ -137,15 +137,6 @@ func (self *UiLib) Transact(params map[string]interface{}) (string, error) {
)
)
}
}
func
(
self
*
UiLib
)
Compile
(
code
string
)
(
string
,
error
)
{
bcode
,
err
:=
common
.
Compile
(
code
,
false
)
if
err
!=
nil
{
return
err
.
Error
(),
err
}
return
common
.
Bytes2Hex
(
bcode
),
err
}
func
(
self
*
UiLib
)
Call
(
params
map
[
string
]
interface
{})
(
string
,
error
)
{
func
(
self
*
UiLib
)
Call
(
params
map
[
string
]
interface
{})
(
string
,
error
)
{
object
:=
mapToTxParams
(
params
)
object
:=
mapToTxParams
(
params
)
...
...
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