Open iboss-ptk opened 1 year ago
Allowing test to be able to test scenario that requires multiple txs in the same block.
Implement Runner trait for Block which all it's functionality are scoped to specific block of a specific app.
Runner
Block
pub struct Block(BaseApp); impl<'a> Runner<'a> for Block { ... }
BaseApp should implement the following function.
BaseApp
pub fn run_block(impl Fn(Block));
Now that we can move BaseApp Runner logic to Block and new BaseApp implementation can call them through run_block.
run_block
Implement this function in OsmosisTestApp
OsmosisTestApp
Why do we need this
Allowing test to be able to test scenario that requires multiple txs in the same block.
What should it look like
Implement
Runner
trait forBlock
which all it's functionality are scoped to specific block of a specific app.BaseApp
should implement the following function.Now that we can move
BaseApp
Runner
logic toBlock
and newBaseApp
implementation can call them throughrun_block
.Implement this function in
OsmosisTestApp