longtech
longtech

Reputation: 93

Deploy contract into polygon mainnet get err: max fee per gas less than block base fee:

Currently, I have an error: max fee per gas less than block base fee when trying to deploy on Polygon mainnet using Truffle. How can I solve the gas fee problem?

matic: {
    provider: function () {
        return new HDWalletProvider(
        [process.env.DEPLOYER_PRIVATE_KEY],
        `https://polygon-rpc.com`
    );
},
network_id: 137,
},

Upvotes: 0

Views: 1359

Answers (1)

longtech
longtech

Reputation: 93

By adding gasprice in truffle.config will fixed the issue.

Upvotes: 1

Related Questions