mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-28 23:37:58 +00:00
Simplify test case declaration (#36)
Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
@@ -12,7 +12,10 @@ pub fn prepare_pvm(
|
||||
config.set_sandbox(Some(SandboxKind::Linux));
|
||||
|
||||
let (instance, export_index) = mock_runtime::prepare(code, Some(config));
|
||||
let transaction = State::default().transaction().calldata(input);
|
||||
let transaction = State::default()
|
||||
.transaction()
|
||||
.with_default_account(code)
|
||||
.calldata(input);
|
||||
|
||||
(transaction, instance, export_index)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user