Joystream / Joystream/joystream
Test extrinsics success/failure with sufficient/insufficient balances
@zeeshanakram3 is already working on this.
Since Jul 13, 2022.
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
Currently, in integration tests, we initialize a few accounts with sufficiently large balances and then use these accounts for all tests. However, we should explicitly test this more accurately; check for extrinsics success & failure with sufficient & insufficient balances, respectively.
For testing, we can initialize accounts with balance b having following constraints in mind,
b>ib<ib=i
where i is the inclusion fee(base_fee + length_fee + [targeted_fee_adjustment * weight_fee]) needed for an extrinsic to succeed.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.