Skip to content

Commit

Permalink
Merge pull request #523 from ethereum/yann300-patch-11
Browse files Browse the repository at this point in the history
Keccak the string and not directly the object
  • Loading branch information
yann300 authored Oct 27, 2020
2 parents 1a63e61 + edf1df7 commit 134e13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/remix-ide/src/app/tabs/runTab/model/recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 134e13a

Please sign in to comment.