浏览代码

Make substrate tests work again

Signed-off-by: Sean Young <sean@mess.org>
Sean Young 2 年之前
父节点
当前提交
ea76104f0b
共有 1 个文件被更改,包括 2 次插入2 次删除
  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");