You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When performing unit testing I get the following error. I could use some help troubleshooting it.
I'm new to programming so please bear with me. If you need additional information or screenshots, please let me know.
appreciate any assistance.
/// ERROR
yarn run v1.22.21
warning package.json: No license field
$ /Users/anthonyjohnson/visual-code/aj-fundme/node_modules/.bin/hardhat test
FundMe
constructor
1) sets the aggregator addresses correctly
0 passing (1s)
1 failing
FundMe
constructor
sets the aggregator addresses correctly:
Error: could not decode result data (value="0x", info={ "method": "priceFeed", "signature": "priceFeed()" }, code=BAD_DATA, version=6.9.0)
at makeError (node_modules/ethers/src.ts/utils/errors.ts:694:21)
at assert (node_modules/ethers/src.ts/utils/errors.ts:715:25)
at Interface.decodeFunctionResult (node_modules/ethers/src.ts/abi/interface.ts:916:15)
at staticCallResult (node_modules/ethers/src.ts/contract/contract.ts:346:35)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at staticCall (node_modules/ethers/src.ts/contract/contract.ts:303:24)
at Proxy.priceFeed (node_modules/ethers/src.ts/contract/contract.ts:351:41)
at Context. (test/staging/unit/FundMe.test.js:22:30)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When performing unit testing I get the following error. I could use some help troubleshooting it.
I'm new to programming so please bear with me. If you need additional information or screenshots, please let me know.
appreciate any assistance.
/// ERROR
yarn run v1.22.21
warning package.json: No license field
$ /Users/anthonyjohnson/visual-code/aj-fundme/node_modules/.bin/hardhat test
FundMe
constructor
0 passing (1s)
1 failing
constructor
sets the aggregator addresses correctly:
Error: could not decode result data (value="0x", info={ "method": "priceFeed", "signature": "priceFeed()" }, code=BAD_DATA, version=6.9.0)
at makeError (node_modules/ethers/src.ts/utils/errors.ts:694:21)
at assert (node_modules/ethers/src.ts/utils/errors.ts:715:25)
at Interface.decodeFunctionResult (node_modules/ethers/src.ts/abi/interface.ts:916:15)
at staticCallResult (node_modules/ethers/src.ts/contract/contract.ts:346:35)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at staticCall (node_modules/ethers/src.ts/contract/contract.ts:303:24)
at Proxy.priceFeed (node_modules/ethers/src.ts/contract/contract.ts:351:41)
at Context. (test/staging/unit/FundMe.test.js:22:30)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
/// FundMe.test.js ///
`const { deployments, ethers, getNamedAccounts } = require("hardhat")
const { assert } = require("chai") // Chai assertion library
describe("FundMe", async function () {
})
})`
Beta Was this translation helpful? Give feedback.
All reactions