Questions tagged [buidler]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
1k views

how to simplify web3 code to send ERC20 tokens using python?

Help, I need to simplify a transaction to send my erc20 tokens using this code as a reference from python web3, the problem is that the code is in a project that when I send my tokens a percentage of ...
frank stone's user avatar
0 votes
0 answers
977 views

Error: VM Exception while processing transaction: revert UniswapV2: LOCKED

I am using this repo to begin testing UniSwap flash swap contracts. I've installed all dependencies correctly and cleanly. The project uses ganache-cli, hardhat buidler, and yarn in the terminal and I ...
justinsacco's user avatar
1 vote
1 answer
2k views

Hardhat Can't resolve 'console' on react project

I have a react project and initialized hardhat config then installed the necessary packages but I am getting error when I require hardhat on my project const hre = require("hardhat"); This ...
Marr's user avatar
  • 327
6 votes
2 answers
8k views

Impersonating accounts on a forked Ethereum main net using Hardhat

I used the example from the Hardhat docs to impersonate an account on a forked network: await hre.network.provider.request({ method: "hardhat_impersonateAccount", params: ["0x...."]...
Mttank's user avatar
  • 81
2 votes
1 answer
1k views

Implementing Chainlink Data in Truffle / Hardhat

What is the easiest way to connect with Chainlink so we can test our dApp locally. Do we have to run a local Chainlink node, or is there any workaround for getting the online data?
drab's user avatar
  • 245
2 votes
1 answer
2k views

HardHat deploy script works on testnet but not on forked hardhat network

The error that I am getting when running this is: Error: Invalid RpcBlockWithTransactions or null I have a contract called PriceConsumerV3 and it makes a view function call on a contract. I am ...
Patrick Collins's user avatar
1 vote
0 answers
34 views

About Buidler Evm

1.How can I execute payable functions, like this putting the Value in the Builder console? 2.Can someone tell me the way to be able to change the address on the Buidler evm console? To execute ...
franco villa santana's user avatar
0 votes
1 answer
635 views

Trying to translate proxy deployment script from Truffle to Buidler. Not sure how

I have a custom proxy. Writing a deployment script for Buidler. Know how to do something in Truffle but not sure how to do the equivalent in Buidler. Truffle let testContract = await deployer.deploy(...
Michael C's user avatar
  • 433
0 votes
1 answer
39 views

Observing some odd behaviour in ether transfer, could somebody help to explain it

I have simple piece of example code derived from SWC-136 · Overview, complete buidler based workspace in the git repo. I see some misbehavior in the execution [ ether transfer between usr-acc -> ...
shamb0's user avatar
  • 1
1 vote
0 answers
199 views

Running solidity-coverage via a buidler plugin on a project using openzeppelin/test-environment yields 0% coverage

I have a project where I would like to check test coverage for the Solidity Smart Contracts. I am using solidity-coverage via a buidler plugin and the test coverage is always 0%. The output from the ...
Darren Jensen's user avatar
41 votes
3 answers
19k views

I see no way to obtain the return value of a non-view function (ethers.js)

In a Buidler/Hardhat test I have: const { expect } = require("chai"); describe("SumOfTokens", function() { it("Checks correct transfers", async function() { const ...
porton's user avatar
  • 1,744
4 votes
4 answers
3k views

Recovered address not matching signer address (using ethers)

Below is a simple signature verification flow I wrote, along with a test case with Buidler (all mainly to learn how to verify signatures in a Solidity smart contract). The problem is that the address ...
Krishang Nadgauda's user avatar
0 votes
0 answers
187 views

If I have several wallets with the same address, how to deal with nonces?

I access Ethereum from several wallets. Some of the addresses are present in several wallets at once. I discovered that nonces should always increase. (Right?) Then if I send transactions from several ...
porton's user avatar
  • 1,744
0 votes
1 answer
719 views

buidler: address already in use (port 8545)

I'm trying out the buidler suite using scaffold-eth. I can start up using yarn start fine, but when I run yarn run chain I get the following error: Error: listen EADDRINUSE: address already in use ...
The Renaissance's user avatar