Merge pull request #523 from ethereum/yann300-patch-11

Keccak the string and not directly the object
pull/5370/head
yann300 4 years ago committed by GitHub
commit 1e67c2f293
  1. 2
      apps/remix-ide/src/app/tabs/runTab/model/recorder.js

@ -26,7 +26,7 @@ class Recorder {
var record = { value, parameters: payLoad.funArgs } var record = { value, parameters: payLoad.funArgs }
if (!to) { if (!to) {
var abi = payLoad.contractABI var abi = payLoad.contractABI
var keccak = ethutil.bufferToHex(ethutil.keccak(abi)) var keccak = ethutil.bufferToHex(ethutil.keccak(JSON.stringify(abi)))
record.abi = keccak record.abi = keccak
record.contractName = payLoad.contractName record.contractName = payLoad.contractName
record.bytecode = payLoad.contractBytecode record.bytecode = payLoad.contractBytecode

Loading…
Cancel
Save