Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to deploy contracts on Gnosis #4276

Closed
rickcain opened this issue Jul 13, 2022 · 10 comments
Closed

Unable to deploy contracts on Gnosis #4276

rickcain opened this issue Jul 13, 2022 · 10 comments
Assignees

Comments

@rickcain
Copy link

rickcain commented Jul 13, 2022

Describe the bug
We are unable to deploy the curve pool contract on Gnosis chain, always got the error message PermissionDenied, permission denied for tx type: Create, actual permissions: None no matter using any deployer addresses.

To Reproduce
Steps to reproduce the behavior:

  1. Download and unzip the attached zip file: permissionDeniedContract.zip.
  2. Run yarn to fetch the openzeppelin dependency.
  3. Paste the private key in .private_key file.
  4. truffle-config.js and 2_deploy_contracts.js are already properly configured. Run truffle migrate --network gnosis to deploy the contract.
  5. The error message PermissionDenied, permission denied for tx type: Create, actual permissions: None shows up.

Expected behavior
The contract can be deployed.

@plato-gno
Copy link

plato-gno commented Jul 14, 2022

Tagging @alebanzas @Georgi87 @koeppelmann (and cc @igorbarinov) into this issue

@LukaszRozmej
Copy link
Member

LukaszRozmej commented Jul 14, 2022

Can you share more details about the deployment transaction, mainly: Sender address, Value, MaxFeePerGas, MaxPriorityFeePerGas, GasLimit, Data ?

Does the node you are using have any custom local permissions set up? Or are you using standard gateway?

Similar issue: #3925

@rickcain
Copy link
Author

rickcain commented Jul 14, 2022

@LukaszRozmej Hi, just like the configurations in truffle-config.js:
Transaction Type: legacy
Sender: doesn't matter, the issue is 100% reproducable
Value: unset
GasPrice: 2 Gwei
GasLimit: 7,000,000
Data: byte code of the contract
RPC: https://rpc.gnosischain.com

We also tried EIP-1559 transaction:
Transaction Type: EIP-1559
Sender: doesn't matter, the issue is 100% reproducable
Value: unset
GasPrice: 2 Gwei
MaxFeePerGas: 2.1 Gwei
MaxPriorityFeePerGas: 2.1 Gwei
GasLimit: 7,000,000
Data: byte code of the contract
RPC: https://rpc.gnosischain.com

PS:

  • Same contract had been deployed multiple times before on Gnosis and they all cost ~5,000,000 so 7,000,000 is quite enough.
  • All constructed transactions were successfully being confirmed and packed on many other chains except Gnosis (though same transactions can send months ago), so we think the transaction itself is not the cause.

@igorbarinov
Copy link

igorbarinov commented Jul 25, 2022

Same contract had been deployed multiple times before on Gnosis and they all cost ~5,000,000 so 7,000,000 is quite enough.

can you please give a link to deployment on another chain?

@rickcain
Copy link
Author

Any updates?
@LukaszRozmej
@igorbarinov

@0xbeedao
Copy link

I get exactly the same response trying to deploy a contract today, using Hardhat.

jsonRpcResponse: {"jsonrpc":"2.0","error":{"code":-32010,"message":"PermissionDenied, permission denied for tx type: Create, actual permissions: None"},"id":10}

@0xbeedao
Copy link

Same result with the same contract, trying to deploy via Remix

@pumpurum2
Copy link

@rickcain @0xbeedao
It looks weird but try do decrease runs of optimizer. I used to get this error with 5000, but after changing to 1000 it deployed successfully

@jmederosalvarado
Copy link
Member

Hi @rickcain @0xbeedao. See issue in gnosis pm repo explaining this. This error is something that the TxPermissionContract is not liking about the transaction. Basically, there is a contract that determines whether a transaction has permission to execute or not. See the relevant code here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants