test-tube icon indicating copy to clipboard operation
test-tube copied to clipboard

Run msgs in the same block

Open iboss-ptk opened this issue 1 year ago • 0 comments

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 for Block which all it's functionality are scoped to specific block of a specific app.

pub struct Block(BaseApp);

impl<'a> Runner<'a> for Block { ... }

BaseApp should implement the following function.

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.

Implement this function in OsmosisTestApp

iboss-ptk avatar Apr 25 '23 08:04 iboss-ptk