Questions tagged [buidler]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
12 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 ...
1
vote
1answer
87 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...."]...
1
vote
1answer
66 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?
2
votes
1answer
145 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 ...
1
vote
0answers
18 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 ...
0
votes
1answer
35 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(...
0
votes
1answer
22 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 -> ...
1
vote
0answers
12 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 ...
3
votes
1answer
182 views

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

In a Buidler test I have: const { expect } = require("chai"); describe("SumOfTokens", function() { it("Checks correct transfers", async function() { const ...
0
votes
0answers
7 views

For Ganache and BuidlerEVM I have different estimated gas

For Ganache and BuidlerEVM I have different (several times) estimated (by Ethers.js) gas for the same computation. Is it a bug? Isn't the Ethereum standard specifying particular gas amount for every ...
1
vote
1answer
24 views

Modify storage in Ganache or BuidlerEVM?

I have an orchestrated contract with a function that can only be called by another contract. While struggling to find an elegant solution for writing a unit test, I realised that I could circumvent ...
0
votes
2answers
38 views

Best practices on testing an orchestrated contract

Let's define an orchestrated contract as one that contains at least one function that can be called by another contract - and that contract only. The function would implement the restriction like this:...
1
vote
0answers
44 views

Time-dependent tests with Buidler?

For Ganache, there are several solutions. What about Buidler? They implemented their own local blockchain, buidlerevm, which is different to Ganache.
1
vote
1answer
76 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 ...
0
votes
0answers
27 views

Buidler, scaffold-eth: Deploy factory

I'm working on deploying a factory contract which in turn has a function to deploy a three-contract ecosystem. One of those contracts also has a library contract with it. Factory.sol A.sol B.sol C.sol ...
1
vote
1answer
66 views

Buidler: Error: unresolved libraries, but why?

I'm attempting to deploy a contract using Buidler (via scaffold-eth), but am getting the following error: Error: Factory contains unresolved libraries. You must deploy and link the following libraries ...
0
votes
0answers
54 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 ...
0
votes
1answer
55 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 ...
3
votes
0answers
34 views

Where does the line blur between a task and a script in Buidler?

This is a question about Buidler, the task runner that facilitates building on Ethereum. From Writing scripts with Buidler: You can write your custom scripts that can use all of Buidler's ...