diff options
author | zsfelfoldi <zsfelfoldi@gmail.com> | 2015-03-31 14:28:12 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-04-20 03:57:48 +0800 |
commit | 3136bae4a5f08820d3116b61b783c100c169717c (patch) | |
tree | 9295831c571081061a67dd1d670490924e114c22 /xeth/frontend.go | |
parent | 97a602864a485bb3a79f460077052bd76cdbff99 (diff) | |
download | dexon-3136bae4a5f08820d3116b61b783c100c169717c.tar.gz dexon-3136bae4a5f08820d3116b61b783c100c169717c.tar.zst dexon-3136bae4a5f08820d3116b61b783c100c169717c.zip |
NatSpec, URL register storage retrieval
fixed 2/3 tests
Diffstat (limited to 'xeth/frontend.go')
-rw-r--r-- | xeth/frontend.go | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/xeth/frontend.go b/xeth/frontend.go index 8deb5c98c..fe1d57c50 100644 --- a/xeth/frontend.go +++ b/xeth/frontend.go @@ -1,9 +1,5 @@ package xeth -import ( - "github.com/ethereum/go-ethereum/core/types" -) - // Frontend should be implemented by users of XEth. Its methods are // called whenever XEth makes a decision that requires user input. type Frontend interface { @@ -21,12 +17,12 @@ type Frontend interface { // // ConfirmTransaction is not used for Call transactions // because they cannot change any state. - ConfirmTransaction(tx *types.Transaction) bool + ConfirmTransaction(tx string) bool } // dummyFrontend is a non-interactive frontend that allows all // transactions but cannot not unlock any keys. type dummyFrontend struct{} -func (dummyFrontend) UnlockAccount([]byte) bool { return false } -func (dummyFrontend) ConfirmTransaction(*types.Transaction) bool { return true } +func (dummyFrontend) UnlockAccount([]byte) bool { return false } +func (dummyFrontend) ConfirmTransaction(string) bool { return true } |