Ошибка при чеканке ERC721 в Matic Testnet
Нужна помощь, чтобы устранить ошибку, указанную ниже. Я пытаюсь чеканить ERC721 nft в Matic Testnet. Я использую hardhat и пробовал следующие сети tesntnet, которые дали мне ту же ошибку:
https://matic-mumbai.chainstacklabs.com
Мне удалось успешно развернуть свой смарт-контракт ERC721 в Matic Testnet. Но когда я попытался чеканить NFT, я столкнулся со следующей ошибкой:
(node:53836) UnhandledPromiseRejectionWarning: Error: Network doesn't support eip-1559
at /Users/gravitywaves/Projects/mynft2/node_modules/web3-eth-accounts/lib/index.js:323:35
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:53836) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:53836) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
2 ответа
Я делаю здесь дикую догадку, но вы, возможно, включаете в свою транзакцию, как транзакции должны отправляться в соответствии с EIP-1559. AFAIK (я могу ошибаться) Polygon еще не реализовал EIP-1559.
Попробуй чеканить
Кроме того, в моем случае я мог отправлять транзакции в развернутый контракт через Remix, поэтому я был уверен, что с моим кодом что-то не так. Возможно, вы захотите выполнить ту же проверку.
Параметр
gasPrice
а также
gasLimit
по сделке также иногда требуется