Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ProviderError: insufficient funds" when deploying any of the contracts via the smart-contracts-hardhat/scripts directory #58

Open
avivash opened this issue Apr 26, 2024 · 2 comments

Comments

@avivash
Copy link

avivash commented Apr 26, 2024

Hey all 👋🏼

Thanks for putting this repo together. I'm excited to dig into everything here. I'm coming across an issue though... whenever I run npx hardhat --network luksoTestnet run scripts/... with any of the scripts in that directory I get the error below 👇🏼

image

I've installed all the dependencies, created a universal profile on testnet, loaded it with 10 lukso from a testnet faucet, created a .env file and added the private key and my UP address to it, but I always see this insufficient funds error.

Does anyone know where I'm going wrong?

Thanks 🙏🏼

@avivash
Copy link
Author

avivash commented Apr 26, 2024

Also, the deployer.address is different from my UP address for some reason, but it does fetch the correct UP for my account in

  const universalProfile = await ethers.getContractAtFromArtifact(
    LSP0Artifact,
    process.env.UP_ADDR as string,
  );

Is the deployer.address supposed to be different from my UP address?

@avivash
Copy link
Author

avivash commented May 1, 2024

CC: @Hugoo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant