Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Issues embedding random data in the ethereum transactions data field #70

Closed
roderik opened this issue Feb 15, 2018 · 1 comment
Closed

Comments

@roderik
Copy link

roderik commented Feb 15, 2018

I'm embedding a Merkle root in the data field of an ethereum transaction. this works fine for e.g. Parity.

On Ganache, however, I'm hit with this function that thinks I'm doing a contract call when I do a transaction that has a to and a data field. https://github.com/trufflesuite/ganache-core/blob/a48a99d2d5609f7e5a05c222fab8727b179c8f60/lib/statemanager.js#L811

        const sendTransaction = Promise.promisify(
          web3.eth.sendTransaction
        )
        const tx = await sendTransaction({
          to: address,
          from: address,
          data: merkleRoot,
        })
@davidmurdoch
Copy link
Member

Thanks, @roderik! Closing this one as we'll be tracking this issue in #117.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants