paritytech / revive

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

Detect problematic blob size at link time #96

Open xermicus opened 3 weeks ago

xermicus commented 3 weeks ago

Emit a compiler warning if we detect the final blob size to exceed the pallets limits.

### Tasks
- [ ] Add a command line flag to provide the memory limit (different chains can exhibit different limits), and assume AH as default
- [ ] Helper to calculate the maximum linked blob size given the static memory buffer and the the pallet limits
- [ ] Check it after linting and emit a warning if over the threshold