diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-13 00:06:15 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-13 00:06:15 +0800 |
commit | 38faf2c51a1e4a86cda5dfa1b4f7fdae4fd7f58d (patch) | |
tree | 4926b4cccc953ad368559ab6cd6efbeb5c3ab74e /xeth/types.go | |
parent | 31fdc645ed9c6bfa63deb8a688888b6cacfd821e (diff) | |
download | go-tangerine-38faf2c51a1e4a86cda5dfa1b4f7fdae4fd7f58d.tar go-tangerine-38faf2c51a1e4a86cda5dfa1b4f7fdae4fd7f58d.tar.gz go-tangerine-38faf2c51a1e4a86cda5dfa1b4f7fdae4fd7f58d.tar.bz2 go-tangerine-38faf2c51a1e4a86cda5dfa1b4f7fdae4fd7f58d.tar.lz go-tangerine-38faf2c51a1e4a86cda5dfa1b4f7fdae4fd7f58d.tar.xz go-tangerine-38faf2c51a1e4a86cda5dfa1b4f7fdae4fd7f58d.tar.zst go-tangerine-38faf2c51a1e4a86cda5dfa1b4f7fdae4fd7f58d.zip |
removed messages
Diffstat (limited to 'xeth/types.go')
-rw-r--r-- | xeth/types.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/xeth/types.go b/xeth/types.go index 34caf5cbc..1bab1e1b3 100644 --- a/xeth/types.go +++ b/xeth/types.go @@ -235,33 +235,3 @@ func NewReciept(contractCreation bool, creationAddress, hash, address []byte) *R toHex(address), } } - -type Message struct { - To string `json:"to"` - From string `json:"from"` - Input string `json:"input"` - Output string `json:"output"` - Path int32 `json:"path"` - Origin string `json:"origin"` - Timestamp int32 `json:"timestamp"` - Coinbase string `json:"coinbase"` - Block string `json:"block"` - Number int32 `json:"number"` - Value string `json:"value"` -} - -func NewMessage(message *state.Message) Message { - return Message{ - To: toHex(message.To), - From: toHex(message.From), - Input: toHex(message.Input), - Output: toHex(message.Output), - Path: int32(message.Path), - Origin: toHex(message.Origin), - Timestamp: int32(message.Timestamp), - Coinbase: toHex(message.Origin), - Block: toHex(message.Block), - Number: int32(message.Number.Int64()), - Value: message.Value.String(), - } -} |