lesson 9 Raffle contract deloyment issue #374
kantoash
started this conversation in
Show and tell
Replies: 3 comments 7 replies
-
Very strange, I ran your code on my machine and it deployed correctly. Does you constructor in your Raffle.sol read exactly the same as this?
etc... |
Beta Was this translation helpful? Give feedback.
1 reply
-
It got deployment problem
…On Fri 17 Jun, 2022, 12:48 AM gmluqa, ***@***.***> wrote:
Very strange, I ran your code on my machine and it compiled correctly.
Does you constructor in your Raffle.sol read exactly the same as this?
constructor(
address vrfCoordinatorV2,
uint256 entranceFee,
bytes32 keyHash,
uint64 subscriptionId,
uint32 callbackGasLimit,
uint256 interval
etc...
...
—
Reply to this email directly, view it on GitHub
<#374 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZIJFYEPBL7AKM2GWHNB2EDVPN4ZTANCNFSM5Y7YTHHQ>
.
You are receiving this because you authored the thread.Message ID:
<smartcontractkit/full-blockchain-solidity-course-js/repo-discussions/374/comments/2966464
@github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Can you post your helper-hardhat-config.js? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
output terminal
main error
Error: invalid arrayify value (argument="value", value="\t0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc", code=INVALID_ARGUMENT, version=bytes/5.6.1)
at Logger.makeError (C:\Users\ASHU\Desktop\Project\lottery\BackEnd\node_modules@ethersproject\logger\src.ts\index.ts:261:28)
at Logger.throwError (C:\Users\ASHU\Desktop\Project\lottery\BackEnd\node_modules@ethersproject\logger\src.ts\index.ts:273:20)
at Logger.throwArgumentError (C:\Users\ASHU\Desktop\Project\lottery\BackEnd\node_modules@ethersproject\logger\src.ts\index.ts:277:21)
at arrayify (C:\Users\ASHU\Desktop\Project\lottery\BackEnd\node_modules@ethersproject\bytes\src.ts\index.ts:141:19)
at FixedBytesCoder.encode (C:\Users\ASHU\Desktop\Project\lottery\BackEnd\node_modules@ethersproject\abi\src.ts\coders\fixed-bytes.ts:22:28)
at C:\Users\ASHU\Desktop\Project\lottery\BackEnd\node_modules@ethersproject\abi\src.ts\coders\array.ts:71:19
at Array.forEach ()
at pack (C:\Users\ASHU\Desktop\Project\lottery\BackEnd\node_modules@ethersproject\abi\src.ts\coders\array.ts:54:12)
at TupleCoder.encode (C:\Users\ASHU\Desktop\Project\lottery\BackEnd\node_modules@ethersproject\abi\src.ts\coders\tuple.ts:54:20)
at AbiCoder.encode (C:\Users\ASHU\Desktop\Project\lottery\BackEnd\node_modules@ethersproject\abi\src.ts\abi-coder.ts:111:15)
at DeploymentsManager.executeDeployScripts (C:\Users\ASHU\Desktop\Project\lottery\BackEnd\node_modules\hardhat-deploy\src\DeploymentsManager.ts:1222:19)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at runNextTicks (node:internal/process/task_queues:65:3)
at listOnTimeout (node:internal/timers:526:9)
at processTimers (node:internal/timers:500:7)
at DeploymentsManager.runDeploy (C:\Users\ASHU\Desktop\Project\lottery\BackEnd\node_modules\hardhat-deploy\src\DeploymentsManager.ts:1052:5)
at SimpleTaskDefinition.action (C:\Users\ASHU\Desktop\Project\lottery\BackEnd\node_modules\hardhat-deploy\src\index.ts:438:5)
at Environment._runTaskDefinition (C:\Users\ASHU\Desktop\Project\lottery\BackEnd\node_modules\hardhat\src\internal\core\runtime-environment.ts:219:14)
at Environment.run (C:\Users\ASHU\Desktop\Project\lottery\BackEnd\node_modules\hardhat\src\internal\core\runtime-environment.ts:131:14)
at SimpleTaskDefinition.action (C:\Users\ASHU\Desktop\Project\lottery\BackEnd\node_modules\hardhat-deploy\src\index.ts:584:32)
code start here
const { network, ethers } = require("hardhat");
const { developmentChains, networkConfig } = require("../helper-hardhat-config")
const VRF_SUB_FUND_AMOUNT = ethers.utils.parseEther("30");
module.exports = async ({getNamedAccounts, deployments}) => {
const {deploy, log} = deployments;
const { deployer } = await getNamedAccounts();
const chainId = network.config.chainId;
}
module.exports.tags = ["all", #"raffle"]`
Beta Was this translation helpful? Give feedback.
All reactions