New answers tagged

0

You need to add in the Escrow contract a payable fallback function to accept or reject the funds: function() external payable { // you can reject the funds (assert/require/revert) under certain conditions... }


0

Yes - except using ethereumjs-wallet not ethereumjs-utils. Using the same mnemonic, with either supporting repo produces the same account address here: const { EthHdWallet } = require('eth-hd-wallet') var hdkey = require("ethereumjs-wallet/hdkey") var bip39 = require("bip39"); const mnemonic = bip39.generateMnemonic(); //generates string console.log(`...


1

The serialize function is used to convert the javascript transaction object into an RLP encoding of the transaction. The RLP encoding processes use a standard method to encodes structures/objects into bytes in a way that they can be sent and understood from one application/library to another - independent of the language they are using. In this case - the ...


1

The error message is misleading. You can safely disregard it since you aren't calling the constructor or sending funds. It's a lot of code to wade through so this won't be very specific. You say this seems to be the issue: request.recipient.transfer(request.value); The most likely cause is the contract doesn't have sufficient funds to make that happen. ...


Top 50 recent answers are included