Skip to content

Instantly share code, notes, and snippets.

@loredanacirstea
Created May 5, 2020 08:46
Show Gist options
  • Save loredanacirstea/f97ff9cb11def585441a0a6ca0a21ed1 to your computer and use it in GitHub Desktop.
Save loredanacirstea/f97ff9cb11def585441a0a6ca0a21ed1 to your computer and use it in GitHub Desktop.
Script to interact with the Taylor interpreted contract
const address = '0x7D4150f492f93e2eDD7FC0Fc62c9193b322f75e5'
let provider = ethers.getDefaultProvider('ropsten');
const newUint8 = '0xffffffff11000001';
const newUint32Array3 = '0xffffffff44000000ee000002000000070000000f110000030000042200000411000004';
const castArrayInt32ToUint256 = '0xffffffff77777788ee0000020000000c000000202200000844000003110000204400000312000004000000020000000500000004';
const data = castArrayInt32ToUint256;
const transaction = {
to: address,
data,
}
provider.call(transaction).then(console.log);
// remix.exeCurrent()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment