diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-07-02 17:27:20 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-07-02 17:27:20 +0800 |
commit | 75f41dedcab63e23ab9c58dcda3da02e3dbb29cb (patch) | |
tree | d3900442c98526fdb05c36ee7e3a226cffc5104e /core | |
parent | 5caff3bc247cdd71f2342093d276041afe898ab3 (diff) | |
parent | 529fb7a7d76e4c98f825bfcb9f3c1fb40b1d0d1e (diff) | |
download | dexon-75f41dedcab63e23ab9c58dcda3da02e3dbb29cb.tar dexon-75f41dedcab63e23ab9c58dcda3da02e3dbb29cb.tar.gz dexon-75f41dedcab63e23ab9c58dcda3da02e3dbb29cb.tar.bz2 dexon-75f41dedcab63e23ab9c58dcda3da02e3dbb29cb.tar.lz dexon-75f41dedcab63e23ab9c58dcda3da02e3dbb29cb.tar.xz dexon-75f41dedcab63e23ab9c58dcda3da02e3dbb29cb.tar.zst dexon-75f41dedcab63e23ab9c58dcda3da02e3dbb29cb.zip |
Merge pull request #1378 from obscuren/issue1367
core, xeth: core.AddressFromMessage removed => crypto.CreateAddress
Diffstat (limited to 'core')
-rw-r--r-- | core/state_transition.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/state_transition.go b/core/state_transition.go index e2212dfef..5611ffd0f 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -7,7 +7,6 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/logger/glog" "github.com/ethereum/go-ethereum/params" @@ -56,11 +55,6 @@ type Message interface { Data() []byte } -func AddressFromMessage(msg Message) common.Address { - from, _ := msg.From() - return crypto.CreateAddress(from, msg.Nonce()) -} - func MessageCreatesContract(msg Message) bool { return msg.To() == nil } |