Skip to content

[Deployment] Error during deployment - works on other EVM #94

Closed Answered by GavinStein1
rafflero asked this question in Deployments
Discussion options

You must be logged in to vote

Hey, I was able to deploy my contract to the era_test_node by increasing the gas limit. You're correct in saying that the estimate gas function does not work properly in the test environment (it seems to always return 0.02 eth or something like that). Using that value will cause an integer overflow error because I think the gas limit var is of type uint32. So I set the gas limit to be the max int for uint32 which is 4294967295. My code is below.

const provider = Provider.getDefaultProvider();
    console.log(provider);
    const wallet = new Wallet(RICH_WALLET_PK, provider);
    const deployer = new Deployer(hre, wallet);
    const artifact = await deployer.loadArtifact("EventFactory");
 …

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@rafflero
Comment options

Comment options

You must be logged in to vote
6 replies
@rafflero
Comment options

@GavinStein1
Comment options

Answer selected by rafflero
@rafflero
Comment options

@MexicanAce
Comment options

@rafflero
Comment options

@rafflero
Comment options

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Questions for deployment
4 participants