Skip to content

Commit 4e0fe48

Browse files
committed
[release/1.3.4] xeth: backward fix for messages
1 parent bcf5657 commit 4e0fe48

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

xeth/xeth.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,13 +1050,14 @@ type callmsg struct {
10501050
}
10511051

10521052
// accessor boilerplate to implement core.Message
1053-
func (m callmsg) From() (common.Address, error) { return m.from.Address(), nil }
1054-
func (m callmsg) Nonce() uint64 { return m.from.Nonce() }
1055-
func (m callmsg) To() *common.Address { return m.to }
1056-
func (m callmsg) GasPrice() *big.Int { return m.gasPrice }
1057-
func (m callmsg) Gas() *big.Int { return m.gas }
1058-
func (m callmsg) Value() *big.Int { return m.value }
1059-
func (m callmsg) Data() []byte { return m.data }
1053+
func (m callmsg) From() (common.Address, error) { return m.from.Address(), nil }
1054+
func (m callmsg) FromFrontier() (common.Address, error) { return m.from.Address(), nil }
1055+
func (m callmsg) Nonce() uint64 { return m.from.Nonce() }
1056+
func (m callmsg) To() *common.Address { return m.to }
1057+
func (m callmsg) GasPrice() *big.Int { return m.gasPrice }
1058+
func (m callmsg) Gas() *big.Int { return m.gas }
1059+
func (m callmsg) Value() *big.Int { return m.value }
1060+
func (m callmsg) Data() []byte { return m.data }
10601061

10611062
type logQueue struct {
10621063
mu sync.Mutex

0 commit comments

Comments
 (0)