From beee680ab3ca400afdf031d7d0c1e2d9e4f05f57 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 27 Oct 2020 11:50:14 +0100 Subject: [PATCH] Keccak the string and not directly the object --- apps/remix-ide/src/app/tabs/runTab/model/recorder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/tabs/runTab/model/recorder.js b/apps/remix-ide/src/app/tabs/runTab/model/recorder.js index dea794a827..26ae3f6085 100644 --- a/apps/remix-ide/src/app/tabs/runTab/model/recorder.js +++ b/apps/remix-ide/src/app/tabs/runTab/model/recorder.js @@ -26,7 +26,7 @@ class Recorder { var record = { value, parameters: payLoad.funArgs } if (!to) { var abi = payLoad.contractABI - var keccak = ethutil.bufferToHex(ethutil.keccak(abi)) + var keccak = ethutil.bufferToHex(ethutil.keccak(JSON.stringify(abi))) record.abi = keccak record.contractName = payLoad.contractName record.bytecode = payLoad.contractBytecode