From 6739a1baa8f731baec0d92b070c150048cab0ea3 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Thu, 7 May 2015 20:46:58 +0200 Subject: [PATCH] "dave" example --- test/coder.encodeParam.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/coder.encodeParam.js b/test/coder.encodeParam.js index 3bbb549..f62e930 100644 --- a/test/coder.encodeParam.js +++ b/test/coder.encodeParam.js @@ -82,6 +82,13 @@ describe('lib/solidity/coder', function () { expected: '0000000000000000000000000000000000000000000000000000000000000009' + '0000000000000000000000000000000000000000000000000000000000000005' + '6761766f66796f726b0000000000000000000000000000000000000000000000'}); + test({ types: ['bytes', 'int[]'], values: ['gavofyork', [1, 2, 3]], + expected: '0000000000000000000000000000000000000000000000000000000000000009' + + '0000000000000000000000000000000000000000000000000000000000000003' + + '6761766f66796f726b0000000000000000000000000000000000000000000000' + + '0000000000000000000000000000000000000000000000000000000000000001' + + '0000000000000000000000000000000000000000000000000000000000000002' + + '0000000000000000000000000000000000000000000000000000000000000003'}); test({ types: ['int', 'bytes'], values: [5, 'gavofyork'], expected: '0000000000000000000000000000000000000000000000000000000000000005' + '0000000000000000000000000000000000000000000000000000000000000009' +