paritytech / revive

Solidity compiler for PolkaVM
Apache License 2.0
17 stars 5 forks source link

Below-ED transfers to non-existant accounts #83

Open xermicus opened 6 days ago

xermicus commented 6 days ago

Ideally transfers below the ED to new accounts don't fail. The runtime could just charge the ED from gas.

### Tasks
- [ ] Investigate and change in `pallet-revive`
- [ ] Implement an integration test here
athei commented 3 days ago

I think it is a good idea to resolve this little difference in behaviour. I remember frontier people complaining that the ED is a pita for them.

I would probably try to integrate it with the storage meter. Cause its job is it to charge deposits from the transaction signer rather than the caller. And this is exactly want we want to do here: Make it transparent for the contract involved. Basically making the ED a storage deposit. This is already the case when instantiating a contract. But extending this to normal bakance transfers would be a good idea.

xermicus commented 3 days ago

This seems even better to me.