miguelmota / ethereum-development-with-go-book

📖 A little guide book on Ethereum Development with Go (golang)

Home Page:https://goethereumbook.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unpack parameters has changed

ncitron opened this issue · comments

In the ebook, ABI.Unpack takes three arguments: interface{}, string and []byte. This seems to have changed in the recent versions of geth, which now has Unpack not take an interface, and instead returns a []interface{} representing the event's data.

Hi,
please consider use UnpackIntoInterface(&transferEvent, "Transfer", vLog.Data)

best regards

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.