Browse Source

Make substrate tests work again

Signed-off-by: Sean Young <sean@mess.org>
Sean Young 2 years ago
parent
commit
ea76104f0b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      integration/substrate/asserts.spec.ts

+ 2 - 2
integration/substrate/asserts.spec.ts

@@ -29,7 +29,7 @@ describe('Deploy asserts contract and test', () => {
         expect(res0.output?.toJSON()).toEqual(1);
 
         let res1 = await query(conn, alice, contract, "testAssertRpc");
-        expect(res1.result.toHuman()).toEqual({ "Err": { "Module": { "error": "0x0b000000", "index": "7" } } });
+        expect(res1.result.toHuman()).toEqual({ "Err": { "Module": { "error": "0x0b000000", "index": "8" } } });
 
         let gasLimit = await weight(conn, contract, "testAssert");
         let tx = contract.tx.testAssert({ gasLimit });
@@ -38,7 +38,7 @@ describe('Deploy asserts contract and test', () => {
             throw new Error("should not succeed");
         }, (res) => res);
 
-        expect(res2.dispatchError.toHuman()).toEqual({ "Module": { "error": "0x0b000000", "index": "7" } });
+        expect(res2.dispatchError.toHuman()).toEqual({ "Module": { "error": "0x0b000000", "index": "8" } });
 
         let res3 = await query(conn, alice, contract, "var");