Execution reverted The transaction has been reverted to the initial state. Error provided by the contract: OwnableUnauthorizedAccount Parameters: { "account": {



hello
i have already contract : 0xdc4586d1444a10710d2fd948d470ad192c1aaa59
and i get errow says
transact to UniqueFish.safeMint errored: Error occured: execution reverted.

execution reverted
The transaction has been reverted to the initial state.
Error provided by the contract:
OwnableUnauthorizedAccount
Parameters:
{
"account": {
"value": "0x64c20eE5b4476bC4eB5dD236498669335382cd31"
}
}

is there anyone can help me ?
This is my contract
0xDC4586d1444A10710d2fd948D470Ad192C1AAa59
I get error while I make safe mint to one of my nft it's give me gas estimation error is there someone here can solve this issue

1 Like

on which network, did you deploy?

1 Like

ethereum and sepolia both act this error

but i already Deployed that contract with ethereum

The error data you are getting is 0x118cdaa700000000000000000000000064c20eE5b4476bC4eB5dD236498669335382cd31. This corresponds to the selector for the custom error OwnableUnauthorizedAccount defined in ownable.

What this error is saying is that you are calling a function that is onlyOwner() with 0x64c20eE5b4476bC4eB5dD236498669335382cd31, but this address is NOT the owner of the contract.

When I check the owner() of 0xdc4586d1444a10710d2fd948d470ad192c1aaa59 on mainnet, the result is 0x0 ... so indeed you are not authorized to mint (no one is)

Note that 0xDC4586d1444A10710d2fd948D470Ad192C1AAa59 is an implementation for an upgradeable contract. Its disabled by default for security purposes. You need to deploy a proxy that points to it, and initialize the proxy. That initialization will setup the owner (for the proxy)

Edit: apparently you did deploy a proxy (https://etherscan.io/address/0x99f44314c9c8e5220ef0c29d8f97800096ec09b2) that is setup correctly

1 Like

thanks for support i got it