From ac3e6af9765649ced4e70a9113bc7d7c6a3cbac4 Mon Sep 17 00:00:00 2001 From: Stephen Shelton Date: Mon, 9 May 2022 20:57:02 +0000 Subject: [PATCH] Expect hex-string instead of int in test --- tests/tests/test-crowdloan.ts | 2 +- tests/tests/test-proxy/test-proxy-balance.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests/test-crowdloan.ts b/tests/tests/test-crowdloan.ts index 2fb295297f..b21e69deb2 100644 --- a/tests/tests/test-crowdloan.ts +++ b/tests/tests/test-crowdloan.ts @@ -1047,7 +1047,7 @@ describeDevMoonbeam("Crowdloan", (context) => { ) ); expect(events[1].toHuman().method).to.eq("ProxyExecuted"); - expect(events[1].data[0].toString()).to.be.eq(`{"err":{"module":{"index":0,"error":5}}}`); + expect(events[1].data[0].toString()).to.be.eq(`{"err":{"module":{"index":0,"error":"0x05000000"}}}`); // Genesis account still has the money rewardInfo = await getAccountPayable(context, GENESIS_ACCOUNT); diff --git a/tests/tests/test-proxy/test-proxy-balance.ts b/tests/tests/test-proxy/test-proxy-balance.ts index 525740fe11..1970da0341 100644 --- a/tests/tests/test-proxy/test-proxy-balance.ts +++ b/tests/tests/test-proxy/test-proxy-balance.ts @@ -82,7 +82,7 @@ describeDevMoonbeam("Proxy: Balances - shouldn't accept other proxy types", (con ); expect(events2[1].method).to.be.eq("ProxyExecuted"); - expect(events2[1].data[0].toString()).to.be.eq(`{"err":{"module":{"index":0,"error":5}}}`); + expect(events2[1].data[0].toString()).to.be.eq(`{"err":{"module":{"index":0,"error":"0x05000000"}}}`); expect(events2[4].method).to.be.eq("ExtrinsicSuccess"); // // check association failed