openethereum / pwasm-abi

Parity WASM Abi (Legacy and new)
Apache License 2.0
29 stars 17 forks source link

Implement fallback functions #81

Open DemiMarie opened 5 years ago

DemiMarie commented 5 years ago

I am porting the POA Networks Bridge Contracts from Solidity to Rust. However, the Solidity code makes use of fallback functions in several places, perhaps most notably here. The eth_abi macro doesn’t support fallback functions.

NikVolf commented 5 years ago

Hi, pwasm-abi does not support fallback, but nothing prevents you from handling input data bytes manually

You just need to use input function to fetch those bytes and handle them similar to how proxy contract does it

NikVolf commented 5 years ago

But we would like to support fallback functions anyway for different use cases