New answers tagged

0

For those of you using Parity's trace_transaction call, the newly-created contract address appears in the trace.result.address field. (And, as a side note, any self-destructed addresses appear in trace.action.address while the address that receives the proceeds of the self-destruct appears at trace.action.refundAddress.)


0

Load the abi with json loads function : import json with open('Contract.abi') as json_file: myabi = json.load(json_file)


0

With web3j and similar by webjs You need the binary code of your contract... you can generate the java wrapper class of your contract with web3j command-line and it always includes the needed Binary as public variable . usually, the command looks like this web3j truffle generate --javaTypes ./build/contracts/YOURCONTRACT.json -o ./your-dist-pfad You ...


0

A light node should be able to perform any operation like a regular nodes, but it relies on full nodes to complete them. If for some reason full nodes do not answer, or do not answer on time the operation will fail. Unfortunately there aren't many full nodes answering, so more complex operations might fail.


0

Visit https://web3js.readthedocs.io/en/v2.0.0-alpha/web3-eth-contract.html?highlight=deploy#id9 .You can try printing error,transaction hash or receipt. It might help you figure out the actual problem, since it gets stuck after console.log("attemtign", accounts).


1

To use accounts other than the first one you have to indicate so to HDWalletProvider. Third parameter is account index, default is 0. For example to use the fifth one: provider: () => { return new HDWalletProvider(mnemonic, URL, 4); } If required you can indicate to load more than one account. To load the the first 5 accounts provider: () => { ...


1

Make sure you have enough eth in your migration account ( truffle uses account[0] on migrations ). I think your configuration is set to pay a ludicrous price for each gas uint but not allowing enough gas units to be spent for your transaction, either because the price is so large that you spend all your eth, or you set a low gas limit. Try removing the gas ...


0

In case of a contract the sender is the contract and the contract address is being used as senderAddress eip-1014 discuss the same


0

The address is actually unlocked but doesn't have enough ETH. So I need to send a tx to fund the address. I think -e 1000000 will also fund the unlock address but actually it will not and that' my mistake.


0

If you encauntering Error: The contract code couldn't be stored, please check your gas amount. While deploing into private network througth truffle suite, then it may be wrong evm version on remote node Always check evm version and it differencing from production enviroment Also you should check for which version of evm truffle use for compilation. It ...


0

You have to define your own minting policy. For example in the color case you can use RGB code as token ID, so there will not be two token referencing the same color. ERC721 tokens optionally have a tokenURI property that you can use to have additional properties attached them. You may prefer to handle everything yourself or have a more decentralized ...


Top 50 recent answers are included