Procházet zdrojové kódy

Make substrate tests work again

Signed-off-by: Sean Young <sean@mess.org>
Sean Young před 2 roky
rodič
revize
ea76104f0b
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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");