locklift error while deploying smart contract on venom network: "Error: Giver has empty contract state, check the giver address",

huangapple go评论50阅读模式
英文:

locklift error while deploying smart contract on venom network: "Error: Giver has empty contract state, check the giver address",

问题

I was trying to deploy my smart contract on the venom devnet blockchain with this jrpc URL jrpc url but I got an error with this message Error("Giver has empty contract state, check the giver address");

英文:

I was trying to deploy my smart contract on the venom devnet blockchain with this jrpc URL

jrpc url

but I got an error with this message

Error("Giver has empty contract state, check the giver address");

>
>
> Users/sam/code/Web3/venomDAO/node_modules/locklift/internal/giver/index.js:24
> throw new Error("Giver has empty contract state, check the giver address");
> ^
> Error: Giver has empty contract state, check the giver address
> at getGiver (/Users/sam/code/Web3/venomDAO/node_modules/locklift/internal/giver/index.js:24:15)
> at processTicksAndRejections (node:internal/process/task_queues:96:5)
> at Function.setup (/Users/sam/code/Web3/venomDAO/node_modules/locklift/index.js:154:41)
> at initLockliftStep (/Users/sam/code/Web3/venomDAO/node_modules/locklift/internal/cli/steps/initLocklift.js:8:23)
> at Command.<anonymous> (/Users/sam/code/Web3/venomDAO/node_modules/locklift/internal/cli/commands/run.js:36:5)
>

答案1

得分: 2

通常情况下,当赠送者账户上没有代币时会发生这种错误。

英文:

Usually, such an error happens, when there are no tokens on the giver balance

答案2

得分: 1

对于那些使用 locklift init(比如 venom youtube 教程)的人,它配置了 Venom devnet 的端点,而不是 Venom testnet。
因此,进入您的 locklift.config.ts 并更改以下内容:

const VENOM_TESTNET_ENDPOINT = process.env.VENOM_TESTNET_ENDPOINT || "https://jrpc-testnet.venom.foundation/rpc";
const VENOM_TESTNET_TRACE_ENDPOINT =
  process.env.VENOM_TESTNET_TRACE_ENDPOINT || "https://gql-testnet.venom.foundation/graphql";

编辑:这不允许我部署合同。所以我不得不改用 devnet,然后通过 https://faucet.venom.network/ 获取代币。

英文:

For the ones who are using locklift init (like venom youtube tutorial) it configures the endpoint for Venom devnet. Which is not the Venom testnet.
So, go into your locklift.config.ts and change

const VENOM_TESTNET_ENDPOINT = process.env.VENOM_TESTNET_ENDPOINT || "https://jrpc-testnet.venom.foundation/rpc";
const VENOM_TESTNET_TRACE_ENDPOINT =
  process.env.VENOM_TESTNET_TRACE_ENDPOINT || "https://gql-testnet.venom.foundation/graphql";

Edit: this didn't let me deploy the contract. So I had to use devnet instead. And get tokens through https://faucet.venom.network/.

huangapple
  • 本文由 发表于 2023年5月14日 18:41:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/76247028.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定