Hi, I am having serious issues with gnosis and the upgradable contract, I issues a tranfer of ownership to Gnosis and it worked, then I prepared the contract V2 to Upgrade. It created the contract, but it failled the migration:
at /Users/rogerssampaio/Sites/wrappedtitty/node_modules/@openzeppelin/truffle-upgrades/src/upgrade-proxy.ts:64:30
When I go to Gnosis and try to upgrade the contract I get "Openzeppelin Error: Unprocessable Entity""
What can I do to fix it?
Environment
Truffe 5.3.14
Openzepelin Upgrades Plugin Latest version.
EDIT
Here is the browser error for Gnosis:
{
"originalError": {
"code": 3,
"data": "0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000054753303230000000000000000000000000000000000000000000000000000000",
"message": "execution reverted: GS020"
}
})
Edit 2
The contracts are now compiling and being deployed OK! But Gnosis still fails during the Upgrade. It fails on mainnet and on Rinkeby.
Here is the Rinkeby Json:
{
"manifestVersion": "3.2",
"admin": {
"address": "0x59bD923E723909A6E0D60D3d0d3F4256217A9B95",
"txHash": "0xee5acb5a07c4b9f383c53799da4e562014f0fdfea3091502838c1e6d6386faef"
},
"proxies": [
{
"address": "0x8A59AA56c3eA7C15bb3249b0102cd62Adf971823",
"txHash": "0xc59b31f86a7c36a91add4db5496e2f2c1b77c7ca8e48c5462815ffd8217d3538",
"kind": "transparent"
}
],
"impls": {
"a2ff0ff1c9429c9c79b9fc4db0f3bc3273e6d8c3ba252fc36a96a2f3af054179": {
"address": "0x88c0596c2855d0354dAfb5dA627E79C78F1c012A",
"txHash": "0x5c1617a04abbe8af20964a2bcb5d8c2e0839c00c346d7dd372dc19ecd4e06a09",
"layout": {
"storage": [
{
"contract": "Initializable",
"label": "_initialized",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:21"
},
{
"contract": "Initializable",
"label": "_initializing",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:26"
},
{
"contract": "ContextUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:30"
},
{
"contract": "OwnableUpgradeable",
"label": "_owner",
"type": "t_address",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:21"
},
{
"contract": "OwnableUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:77"
},
{
"contract": "ERC165Upgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol:35"
},
{
"contract": "ERC721Upgradeable",
"label": "_name",
"type": "t_string_storage",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol:24"
},
{
"contract": "ERC721Upgradeable",
"label": "_symbol",
"type": "t_string_storage",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol:27"
},
{
"contract": "ERC721Upgradeable",
"label": "_owners",
"type": "t_mapping(t_uint256,t_address)",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol:30"
},
{
"contract": "ERC721Upgradeable",
"label": "_balances",
"type": "t_mapping(t_address,t_uint256)",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol:33"
},
{
"contract": "ERC721Upgradeable",
"label": "_tokenApprovals",
"type": "t_mapping(t_uint256,t_address)",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol:36"
},
{
"contract": "ERC721Upgradeable",
"label": "_operatorApprovals",
"type": "t_mapping(t_address,t_mapping(t_address,t_bool))",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol:39"
},
{
"contract": "ERC721Upgradeable",
"label": "__gap",
"type": "t_array(t_uint256)44_storage",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol:418"
},
{
"contract": "ERC721URIStorageUpgradeable",
"label": "_tokenURIs",
"type": "t_mapping(t_uint256,t_string_storage)",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol:23"
},
{
"contract": "ERC721URIStorageUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol:75"
},
{
"contract": "PausableUpgradeable",
"label": "_paused",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:28"
},
{
"contract": "PausableUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "../@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:96"
},
{
"contract": "CryptoTitties",
"label": "_tokenIds",
"type": "t_struct(Counter)1741_storage",
"src": "../project:/contracts/CryptoTitties.sol:15"
},
{
"contract": "CryptoTitties",
"label": "Titties",
"type": "t_mapping(t_uint256,t_struct(Titty)2708_storage)",
"src": "../project:/contracts/CryptoTitties.sol:24"
},
{
"contract": "CryptoTitties",
"label": "tittyContract",
"type": "t_contract(ICryptoTittyV1)3896",
"src": "../project:/contracts/CryptoTitties.sol:27"
},
{
"contract": "CryptoTitties",
"label": "_max_supply",
"type": "t_uint256",
"src": "../project:/contracts/CryptoTitties.sol:29"
},
{
"contract": "CryptoTitties",
"label": "cttWallet",
"type": "t_address_payable",
"src": "../project:/contracts/CryptoTitties.sol:31"
},
{
"contract": "CryptoTitties",
"label": "cttBoat",
"type": "t_address_payable",
"src": "../project:/contracts/CryptoTitties.sol:32"
}
],
"types": {
"t_struct(Counter)1741_storage": {
"label": "struct CountersUpgradeable.Counter",
"members": [
{
"label": "_value",
"type": "t_uint256"
}
]
},
"t_uint256": {
"label": "uint256"
},
"t_mapping(t_uint256,t_struct(Titty)2708_storage)": {
"label": "mapping(uint256 => struct CryptoTitties.Titty)"
},
"t_struct(Titty)2708_storage": {
"label": "struct CryptoTitties.Titty",
"members": [
{
"label": "name",
"type": "t_string_storage"
},
{
"label": "originalPrice",
"type": "t_uint256"
},
{
"label": "salePrice",
"type": "t_uint256"
},
{
"label": "forSale",
"type": "t_bool"
}
]
},
"t_string_storage": {
"label": "string"
},
"t_bool": {
"label": "bool"
},
"t_contract(ICryptoTittyV1)3896": {
"label": "contract ICryptoTittyV1"
},
"t_address_payable": {
"label": "address payable"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]"
},
"t_mapping(t_uint256,t_string_storage)": {
"label": "mapping(uint256 => string)"
},
"t_mapping(t_uint256,t_address)": {
"label": "mapping(uint256 => address)"
},
"t_address": {
"label": "address"
},
"t_mapping(t_address,t_uint256)": {
"label": "mapping(address => uint256)"
},
"t_mapping(t_address,t_mapping(t_address,t_bool))": {
"label": "mapping(address => mapping(address => bool))"
},
"t_mapping(t_address,t_bool)": {
"label": "mapping(address => bool)"
},
"t_array(t_uint256)44_storage": {
"label": "uint256[44]"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]"
}
}
}
},
"e947005e3e2869e62a671abbe0794b38203fc42c5b5384a423801395ddd49acc": {
"address": "0x48644DCB2f46EA684468493bb797de83aEaF2B8a",
"txHash": "0x21f97bedd0257a3291b74940d5e822c112030f4ce6eaac58b7f50970e4416dd0",
"layout": {
"storage": [
{
"contract": "Initializable",
"label": "_initialized",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:21"
},
{
"contract": "Initializable",
"label": "_initializing",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:26"
},
{
"contract": "ContextUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:30"
},
{
"contract": "OwnableUpgradeable",
"label": "_owner",
"type": "t_address",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:21"
},
{
"contract": "OwnableUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:77"
},
{
"contract": "ERC165Upgradeable",
"label": "__gap",
"type": "t_array(t_uint256)50_storage",
"src": "../@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol:35"
},
{
"contract": "ERC721Upgradeable",
"label": "_name",
"type": "t_string_storage",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol:24"
},
{
"contract": "ERC721Upgradeable",
"label": "_symbol",
"type": "t_string_storage",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol:27"
},
{
"contract": "ERC721Upgradeable",
"label": "_owners",
"type": "t_mapping(t_uint256,t_address)",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol:30"
},
{
"contract": "ERC721Upgradeable",
"label": "_balances",
"type": "t_mapping(t_address,t_uint256)",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol:33"
},
{
"contract": "ERC721Upgradeable",
"label": "_tokenApprovals",
"type": "t_mapping(t_uint256,t_address)",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol:36"
},
{
"contract": "ERC721Upgradeable",
"label": "_operatorApprovals",
"type": "t_mapping(t_address,t_mapping(t_address,t_bool))",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol:39"
},
{
"contract": "ERC721Upgradeable",
"label": "__gap",
"type": "t_array(t_uint256)44_storage",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol:418"
},
{
"contract": "ERC721URIStorageUpgradeable",
"label": "_tokenURIs",
"type": "t_mapping(t_uint256,t_string_storage)",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol:23"
},
{
"contract": "ERC721URIStorageUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "../@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol:75"
},
{
"contract": "PausableUpgradeable",
"label": "_paused",
"type": "t_bool",
"src": "../@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:28"
},
{
"contract": "PausableUpgradeable",
"label": "__gap",
"type": "t_array(t_uint256)49_storage",
"src": "../@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:96"
},
{
"contract": "CryptoTittiesV2",
"label": "_tokenIds",
"type": "t_struct(Counter)1741_storage",
"src": "../project:/contracts/CryptoTittiesV2.sol:15"
},
{
"contract": "CryptoTittiesV2",
"label": "Titties",
"type": "t_mapping(t_uint256,t_struct(Titty)3346_storage)",
"src": "../project:/contracts/CryptoTittiesV2.sol:24"
},
{
"contract": "CryptoTittiesV2",
"label": "tittyContract",
"type": "t_contract(ICryptoTittyV1)3896",
"src": "../project:/contracts/CryptoTittiesV2.sol:27"
},
{
"contract": "CryptoTittiesV2",
"label": "_max_supply",
"type": "t_uint256",
"src": "../project:/contracts/CryptoTittiesV2.sol:29"
},
{
"contract": "CryptoTittiesV2",
"label": "cttWallet",
"type": "t_address_payable",
"src": "../project:/contracts/CryptoTittiesV2.sol:31"
},
{
"contract": "CryptoTittiesV2",
"label": "cttBoat",
"type": "t_address_payable",
"src": "../project:/contracts/CryptoTittiesV2.sol:32"
}
],
"types": {
"t_struct(Counter)1741_storage": {
"label": "struct CountersUpgradeable.Counter",
"members": [
{
"label": "_value",
"type": "t_uint256"
}
]
},
"t_uint256": {
"label": "uint256"
},
"t_mapping(t_uint256,t_struct(Titty)3346_storage)": {
"label": "mapping(uint256 => struct CryptoTittiesV2.Titty)"
},
"t_struct(Titty)3346_storage": {
"label": "struct CryptoTittiesV2.Titty",
"members": [
{
"label": "name",
"type": "t_string_storage"
},
{
"label": "originalPrice",
"type": "t_uint256"
},
{
"label": "salePrice",
"type": "t_uint256"
},
{
"label": "forSale",
"type": "t_bool"
}
]
},
"t_string_storage": {
"label": "string"
},
"t_bool": {
"label": "bool"
},
"t_contract(ICryptoTittyV1)3896": {
"label": "contract ICryptoTittyV1"
},
"t_address_payable": {
"label": "address payable"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]"
},
"t_mapping(t_uint256,t_string_storage)": {
"label": "mapping(uint256 => string)"
},
"t_mapping(t_uint256,t_address)": {
"label": "mapping(uint256 => address)"
},
"t_address": {
"label": "address"
},
"t_mapping(t_address,t_uint256)": {
"label": "mapping(address => uint256)"
},
"t_mapping(t_address,t_mapping(t_address,t_bool))": {
"label": "mapping(address => mapping(address => bool))"
},
"t_mapping(t_address,t_bool)": {
"label": "mapping(address => bool)"
},
"t_array(t_uint256)44_storage": {
"label": "uint256[44]"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]"
}
}
}
}
}
}
Please Help