Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Address Check all return false #68

Open
lpf763827726 opened this issue Jul 28, 2021 · 2 comments
Open

Address Check all return false #68

lpf763827726 opened this issue Jul 28, 2021 · 2 comments

Comments

@lpf763827726
Copy link

when i follow this Address Check, i don't know why always send me back false, is it out of date?

@lpf763827726
Copy link
Author

lpf763827726 commented Jul 30, 2021

And in Querying Transactions

if msg, err := tx.AsMessage(types.NewEIP155Signer(chainID)); err == nil {
  fmt.Println(msg.From().Hex()) // 0x0fD081e3Bb178dc45c0cb23202069ddA57064258
}

it report:

not enough arguments in call to tx.AsMessage
	have (types.EIP155Signer)
	want (types.Signer, *big.Int)

it look like lose the types.Signer

@jimmyx0x
Copy link

jimmyx0x commented Apr 6, 2022

+1, should be something like

if msg, err := tx.AsMessage(types.NewEIP155Signer(chainID), big.NewInt(1)); err != nil {

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants