diff --git a/packages/worker-api/src/requests.ts b/packages/worker-api/src/requests.ts index baeda705..6ba23e69 100644 --- a/packages/worker-api/src/requests.ts +++ b/packages/worker-api/src/requests.ts @@ -48,7 +48,10 @@ export const clientRequestTrustedGetter = (self: IEncointerWorker, request: stri const s = self.createType('ShardIdentifier', bs58.decode(shard)); const r = self.createType( - 'Request', { shard: s, cyphertext: g.toU8a() } + 'Request', { + shard: s, + cyphertext: g.toHex() + } ); return createJsonRpcRequest('state_executeGetter', [r.toHex()],1); diff --git a/packages/worker-api/src/worker.spec.ts b/packages/worker-api/src/worker.spec.ts index 6c682219..725d788f 100644 --- a/packages/worker-api/src/worker.spec.ts +++ b/packages/worker-api/src/worker.spec.ts @@ -67,7 +67,7 @@ describe('worker', () => { describe('getNonce', () => { it('should return value', async () => { const result = await worker.getNonce(alice, network.mrenclave); - console.log('getBalance', result); + console.log('getNonce', result); expect(result).toBeDefined(); }); });