Fix tests against nightly Substrate (#873)

* variant change in latest codegen

* fmt
This commit is contained in:
James Wilson
2023-03-21 13:02:59 +00:00
committed by GitHub
parent 2fb7dfd2bf
commit 4f1d9b98f8
@@ -62,11 +62,10 @@ impl ContractsTestContext {
async fn upload_code(&self) -> Result<Hash, Error> {
let code = wabt::wat2wasm(CONTRACT).expect("invalid wabt");
let upload_tx = node_runtime::tx().contracts().upload_code(
code,
None,
Determinism::Deterministic,
);
let upload_tx =
node_runtime::tx()
.contracts()
.upload_code(code, None, Determinism::Enforced);
let events = self
.client()