Skip to content
This repository has been archived by the owner on Feb 14, 2021. It is now read-only.

Implement fallback functions #81

Open
DemiMarie opened this issue Dec 20, 2018 · 2 comments
Open

Implement fallback functions #81

DemiMarie opened this issue Dec 20, 2018 · 2 comments

Comments

@DemiMarie
Copy link

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
Copy link
Collaborator

NikVolf commented Dec 20, 2018

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
Copy link
Collaborator

NikVolf commented Dec 20, 2018

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

@NikVolf NikVolf changed the title Fallback functions Implement fallback functions Dec 20, 2018
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