Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Conversation

@katspaugh
Copy link
Member

What it solves

Resolves #2999

How this PR fixes it

Adds 70% on top of estimated gas limit.
I've also updated the RPC URL to the one we use in the config-service.
And enabled EIP-1559 maxFeePerGas for xDai.

How to test it

  • Make all sorts of txns
  • Create a safe

@katspaugh katspaugh requested a review from dasanra November 18, 2021 09:47
@github-actions
Copy link

CLA Assistant Lite All Contributors have signed the CLA.

@github-actions
Copy link

github-actions bot commented Nov 18, 2021

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 3 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@coveralls
Copy link

coveralls commented Nov 18, 2021

Pull Request Test Coverage Report for Build 1490750016

  • 7 of 11 (63.64%) changed or added relevant lines in 8 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.06%) to 31.881%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/logic/hooks/useEstimateTransactionGas.tsx 0 1 0.0%
src/logic/wallets/ethTransactions.ts 0 1 0.0%
src/logic/wallets/getWeb3.ts 1 2 50.0%
src/routes/CreateSafePage/components/SafeCreationProcess.tsx 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
src/routes/CreateSafePage/components/SafeCreationProcess.tsx 1 3.09%
Totals Coverage Status
Change from base Build 1490055562: 0.06%
Covered Lines: 2984
Relevant Lines: 8354

💛 - Coveralls

@github-actions
Copy link

Deployment links

🟠 Safe Rinkeby Safe Mainnet 🟣 Safe Polygon 🟡 Safe BSC Safe Arbitrum 🟢 Safe xDai

@github-actions
Copy link

github-actions bot commented Nov 18, 2021

E2E Tests Passed ✅
Check the results here: https://github.com/gnosis/safe-react-e2e-tests/actions/runs/1490782448

rpcServiceUrl: 'https://dai.poa.network/',
safeAppsRpcServiceUrl: 'https://dai.poa.network/',
rpcServiceUrl: 'https://rpc.xdaichain.com/oe-only/',
safeAppsRpcServiceUrl: 'https://rpc.xdaichain.com/oe-only/',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the RPC URLs to the ones used by the config-service.

// How much to add to gasLimit per network
// Defaults to 1 (i.e. no extra gas)
export const EXTRA_GAS_FACTOR = {
[ETHEREUM_NETWORK.ARBITRUM]: 1.2, // +20%
Copy link
Member Author

@katspaugh katspaugh Nov 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was added because of NFTs on Arbitrum. They can be now sent w/o a problem with no extra gas.

@katspaugh katspaugh changed the title Fix: xDai -- add +70% gas limit; use EIP-1559; update RPC Fix: xDai – gas estimation; use EIP-1559; update RPC Nov 22, 2021
export const getSDKWeb3ReadOnly = (signerAddress: string): Web3Adapter => {
return new Web3Adapter({
web3: getWeb3ReadOnly(),
signerAddress,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is signerAddress a required property? because the read only instance obv can't sign anything

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me test if I can remove it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a required param, but it happily works with a zero address, so I'll use that.

@katspaugh katspaugh merged commit e605f29 into dev Nov 23, 2021
@katspaugh katspaugh deleted the fix-xdai-gas branch November 23, 2021 14:43
@github-actions github-actions bot locked and limited conversation to collaborators Nov 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gas limit estimation on xDAI is not working

5 participants