DEV Community

Cover image for Writing smart contracts in ink!

Writing smart contracts in ink!

Bekka on July 30, 2023

If you are looking for a soft landing into polkadot and you don't want to bother about writing pallets yet while still enjoying solidity's style of...
Collapse
 
kubasiemion profile image
kubasiemion

Nice, but would not the self.env().account_id() resolve to the contract deployment address rather than the creator's address (on a real chain)?

Collapse
 
ayomide_bajo profile image
Bekka

Yes, It would be the contract address. This is a better option because it's more secure. You can also withdraw from the contract address, you can write the logic for this. I hope this helps.