diff options
author | Egon Elbre <egonelbre@gmail.com> | 2017-08-06 13:54:25 +0800 |
---|---|---|
committer | Egon Elbre <egonelbre@gmail.com> | 2017-08-08 00:54:20 +0800 |
commit | 8f06b7980dd2b6023ee7657d28da5567cdda4fcc (patch) | |
tree | 8b67d622446f9ae874df555e41a5709c99ce3431 /eth/api.go | |
parent | 971079822ee6c12d9348ec78f212fe91c9b83edf (diff) | |
download | go-tangerine-8f06b7980dd2b6023ee7657d28da5567cdda4fcc.tar go-tangerine-8f06b7980dd2b6023ee7657d28da5567cdda4fcc.tar.gz go-tangerine-8f06b7980dd2b6023ee7657d28da5567cdda4fcc.tar.bz2 go-tangerine-8f06b7980dd2b6023ee7657d28da5567cdda4fcc.tar.lz go-tangerine-8f06b7980dd2b6023ee7657d28da5567cdda4fcc.tar.xz go-tangerine-8f06b7980dd2b6023ee7657d28da5567cdda4fcc.tar.zst go-tangerine-8f06b7980dd2b6023ee7657d28da5567cdda4fcc.zip |
eth: fix megacheck warnings
Diffstat (limited to 'eth/api.go')
-rw-r--r-- | eth/api.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/eth/api.go b/eth/api.go index 0d90759b6..f5214fc37 100644 --- a/eth/api.go +++ b/eth/api.go @@ -465,26 +465,6 @@ func (api *PrivateDebugAPI) traceBlock(block *types.Block, logConfig *vm.LogConf return true, structLogger.StructLogs(), nil } -// callmsg is the message type used for call transitions. -type callmsg struct { - addr common.Address - to *common.Address - gas, gasPrice *big.Int - value *big.Int - data []byte -} - -// accessor boilerplate to implement core.Message -func (m callmsg) From() (common.Address, error) { return m.addr, nil } -func (m callmsg) FromFrontier() (common.Address, error) { return m.addr, nil } -func (m callmsg) Nonce() uint64 { return 0 } -func (m callmsg) CheckNonce() bool { return false } -func (m callmsg) To() *common.Address { return m.to } -func (m callmsg) GasPrice() *big.Int { return m.gasPrice } -func (m callmsg) Gas() *big.Int { return m.gas } -func (m callmsg) Value() *big.Int { return m.value } -func (m callmsg) Data() []byte { return m.data } - // formatError formats a Go error into either an empty string or the data content // of the error itself. func formatError(err error) string { |