safe-global / safe-react-apps

A repository for applications for Safe Web Interface
MIT License
98 stars 73 forks source link

feat(tx builder): use cgw for simulation configs #801

Closed katspaugh closed 4 months ago

katspaugh commented 4 months ago

What it solves

Instead of using a hardcoded list of chains where simulation isn't supported, use CGW/config service to get the config of the current chain and check its features list.

How this PR fixes it

I've replaced a hardcoded array of chain ids with an async call to CGW. I've added useAsync from the wallet repo for this.

Screenshot 2024-04-18 at 11 33 43
github-actions[bot] commented 4 months ago
katspaugh commented 4 months ago

Simulation is disabled on Aurora, so no button is shown:

Screenshot 2024-04-18 at 11 40 36
katspaugh commented 4 months ago

Tested by @liliya-soroka ✅