TypeError: network.provider.getSignerFrom is not a function #6749
taohuaichun
started this conversation in
General
Replies: 1 comment 1 reply
-
I am also facing the same error |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I meet error "TypeError: network.provider.getSignerFrom is not a function" when try to deploy mock locally, Can someone please help? Use commented out code is ok.
My code is:
module.exports = async ({getNamedAccounts, deployments}) => {
const { deploy, log} = deployments;
const { deployer } = await getNamedAccounts();
const chainId = network.config.chainId;
console.log(deployer);
if(developChains.includes(network.name)){
console.log("Deploy mock locally...");
await deploy("MockV3Aggregator", {
//contract : "MockV3Aggregator",
from : deployer,
args : [decimal, answer],
log : true
});
}
Beta Was this translation helpful? Give feedback.
All reactions