diff --git a/test/formatters.inputPostFormatter.js b/test/formatters.inputPostFormatter.js index 705a93b..ce292ff 100644 --- a/test/formatters.inputPostFormatter.js +++ b/test/formatters.inputPostFormatter.js @@ -10,7 +10,7 @@ describe('formatters', function () { assert.deepEqual(formatters.inputPostFormatter({ from: '0x00000', to: '0x00000', - payload: {test: 'test'}, + payload: '0x7b2274657374223a2274657374227d',//{test: 'test'}, ttl: 200, priority: 1000, topics: ['hello','mytopics'] diff --git a/test/formatters.outputPostFormatter.js b/test/formatters.outputPostFormatter.js index 850d3d8..6dd39b8 100644 --- a/test/formatters.outputPostFormatter.js +++ b/test/formatters.outputPostFormatter.js @@ -17,8 +17,8 @@ describe('formatters', function () { sent: 1000, ttl: 1000, workProved: 1000, - payload: {test: 'test'}, - payloadRaw: '0x7b2274657374223a2274657374227d', + payload: '0x7b2274657374223a2274657374227d',//{test: 'test'}, + //payloadRaw: '0x7b2274657374223a2274657374227d', topics: ['hello','mytopics'] }); }); diff --git a/test/web3.shh.post.js b/test/web3.shh.post.js index 84613e5..dd2a666 100644 --- a/test/web3.shh.post.js +++ b/test/web3.shh.post.js @@ -9,7 +9,7 @@ var tests = [{ args: [{ from: '0x123123123', topics: ['hello_world'], - payload: '12345', + payload: web3.toHex('12345'), ttl: 100, workToProve: 101 }],