contracts: Fix some minor bugs around instantiation (#8879)
* Fix output of wrongly outputted error The "Tombstoned a contract that is below the subsistence threshold: {:?}" was triggered when too few balance was provided. It was a false alarm. * Fix return of wrong code_len * Split up `NotCallable` into more fine grained errors * Fix typos in docs Co-authored-by:Keith Yeung <kungfukeith11@gmail.com> * RentNotPayed -> RentNotPaid * Fix typo: payed -> paid It is OK to change the in-storage field name because: 1. The SCALE encoding is not based on names only on position. 2. The struct is not public (only to the crate). Co-authored-by:
Keith Yeung <kungfukeith11@gmail.com>
Showing
- substrate/frame/contracts/CHANGELOG.md 1 addition, 1 deletionsubstrate/frame/contracts/CHANGELOG.md
- substrate/frame/contracts/src/benchmarking/mod.rs 2 additions, 2 deletionssubstrate/frame/contracts/src/benchmarking/mod.rs
- substrate/frame/contracts/src/exec.rs 22 additions, 8 deletionssubstrate/frame/contracts/src/exec.rs
- substrate/frame/contracts/src/lib.rs 17 additions, 6 deletionssubstrate/frame/contracts/src/lib.rs
- substrate/frame/contracts/src/rent.rs 6 additions, 6 deletionssubstrate/frame/contracts/src/rent.rs
- substrate/frame/contracts/src/storage.rs 4 additions, 4 deletionssubstrate/frame/contracts/src/storage.rs
- substrate/frame/contracts/src/tests.rs 11 additions, 11 deletionssubstrate/frame/contracts/src/tests.rs
- substrate/frame/contracts/src/wasm/runtime.rs 4 additions, 2 deletionssubstrate/frame/contracts/src/wasm/runtime.rs
Please register or sign in to comment