diff --git a/nim-waku b/nim-waku index 4ae1cd4737..d1c1a0ca13 160000 --- a/nim-waku +++ b/nim-waku @@ -1 +1 @@ -Subproject commit 4ae1cd4737dacdd30f879eea199e0a89a9c1532e +Subproject commit d1c1a0ca13e3aa2690a6550faca13210e1f46877 diff --git a/src/test_utils/nim_waku.spec.ts b/src/test_utils/nim_waku.spec.ts index fca582043e..2443ed034a 100644 --- a/src/test_utils/nim_waku.spec.ts +++ b/src/test_utils/nim_waku.spec.ts @@ -22,7 +22,7 @@ it('Correctly serialized arguments', function () { it('Convert utf-8 string to hex', function () { const str = 'This is an utf-8 string.'; - const expected = '0x5468697320697320616e207574662d3820737472696e672e'; + const expected = '5468697320697320616e207574662d3820737472696e672e'; const actual = strToHex(str); expect(actual).deep.equal(expected); @@ -55,7 +55,7 @@ it('Convert buffer to hex', function () { 0x67, 0x2e, ]); - const expected = '0x5468697320697320616e207574662d3820737472696e672e'; + const expected = '5468697320697320616e207574662d3820737472696e672e'; const actual = bufToHex(buf); expect(actual).to.deep.equal(expected); diff --git a/src/test_utils/nim_waku.ts b/src/test_utils/nim_waku.ts index 484e93ce04..34e7e6e9f1 100644 --- a/src/test_utils/nim_waku.ts +++ b/src/test_utils/nim_waku.ts @@ -243,16 +243,13 @@ export function strToHex(str: string): string { hex = str; console.log('invalid text input: ' + str); } - return '0x' + hex; + return hex; } export function bufToHex(buffer: Uint8Array) { - return ( - '0x' + - Array.prototype.map - .call(buffer, (x) => ('00' + x.toString(16)).slice(-2)) - .join('') - ); + return Array.prototype.map + .call(buffer, (x) => ('00' + x.toString(16)).slice(-2)) + .join(''); } interface RpcInfoResponse {