celestiaorg / blobstream-contracts

Celestia -> EVM bridge
Apache License 2.0
130 stars 40 forks source link

Fix go binding generation #73

Closed evan-forbes closed 2 years ago

evan-forbes commented 2 years ago

ideally we should be able to call make gen and the golang binding will be generated using go ethereuem's abigen tool. This is currently broken due to the makefile not having correct paths to the smart contracts, along with abigen not being able to handle certain lib imports.

evan-forbes commented 2 years ago

abigen has the option to manually point to an abi, which is a good way to get around certain importing issues. Unfortunately, the abi that is generated by foundry has some slight incompatibilities in its format that is stopping abigen from being able to unmarshal it