pwasm-abi icon indicating copy to clipboard operation
pwasm-abi copied to clipboard

Implement fallback functions

Open DemiMarie opened this issue 6 years ago • 2 comments
trafficstars

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.

DemiMarie avatar Dec 20 '18 00:12 DemiMarie

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 avatar Dec 20 '18 14:12 NikVolf

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

NikVolf avatar Dec 20 '18 14:12 NikVolf