1

This part was wrong. tx.sign(privateKey1) Fix it like this: tx.sign(privateKey1Buffer)


1

getTransactionFromAddress() works as intended, but you need to wait for the async function to resolve when you are logging the result. You can do this with: getTransactionFromAddress('0x88a7EF2F047F8b07c6C917a6FD1A13438E9d8424').then((res) => { console.log(res); // do whatever you want with the response })


1

First, you should make sure you are using a fairly new geth version. I tested on my recently downloaded version from the official download site My local version is $ ./geth version Geth Version: 1.9.25-stable Git Commit: e7872729012a4871397307b12cc3f4772ffcbec6 Git Commit Date: 20201211 Architecture: amd64 Protocol Versions: [65 64 63] Go Version: go1.15.6 ...


1

Nevermind, I found the issue. The javascript code I posted is a little differrent. In the original code, I was fetching the contractAddress using web3.getTransactionReceipt(..).then(function(receipt){ contract = .... (receipt.contractAddress)}); This code worked in the first version of my contract, but when the contract was updated, obviously the address ...


1

Yes, you can adjust it with that function. The Uniswap router swap functions trade asset A for asset B, with slippage. Mostly they are of type "give A, get B, while either the amount of A or B remains static". So you for example have a swap "I want to pay x amount of A tokens and get as many B tokens as possible" or "I want to pay as ...


1

Doesn't seem to be an issue on your code, but rather about your setup in which you don't have peers to connect in your configuration files. You may try to update your peer nodes.


1

I had the same issue for that tutorial looks like once the test is ran it adds an import for react-bootstrap/lib/Breadcrumb. I just removed the import and reran the test and it worked.


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