1 vote
Accepted

What `to` should be set when deploying contracts?

Transactions that are creating a contract are defined as transactions that don't have a to address. You should be able to put undefined/null/your language's equivalent, or not include the parameter at ...
user avatar
  • 10.6k
1 vote
Accepted

Any document for the layout of the smart contract binary?

This part is the CBOR encoded contract metadata, you can read about it in the documentation. Basically, the last 2 bytes of the contract runtime code will be the metadata payload length located just ...
user avatar
  • 4,919
1 vote

How can i interact with my contract i deployed on rinkeby network and send eth to uniswap

Maybe just the syntax: await engine.convertETHToDAI({value: 0.1 ether})
user avatar
1 vote

Solidity : Could not find artifacts for Migrations from any sources

Those keys about location of files, contracts_directory and contracts_build_directory, should be out of networks: module.exports ={ contracts_directory:'./src/contracts/', ...
user avatar
  • 33
1 vote

Does Solidity support passing an array of strings to a contract's constructor yet?

2022 here, yes it does now. Open this in Remix and use something like ["str1", "str2"] to deploy: pragma solidity ^0.8.7; contract Strings { string[] public stringParam; ...
user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible