aeternity / aesophia

Stand alone compiler for the Sophia smart contract language
https://docs.aeternity.com/aesophia
ISC License
52 stars 19 forks source link

Implement Contract.self to return the current contract #518

Open ghallak opened 5 days ago

ghallak commented 5 days ago

The issue arises while trying to pass the current contract as an argument to a function.

Current workaround is to use: Address.to_contract(Contract.address), but Contract.self should be implemented to avoid using this workaround.