Skip to content

Commit

Permalink
Update HooksTrampoline Address (#1815)
Browse files Browse the repository at this point in the history
Since the Shapella hardfork landed on Gnosis Chain, we no longer need a
different address for the hooks trampoline πŸŽ‰.

For more context see
cowprotocol/hooks-trampoline#6.

### Test Plan

Contract code is identical on Mainnet and Gnosis Chain.

```shell
rpc='{ "id": 1,"jsonrpc": "2.0","method": "eth_getCode", "params": ["0x01dcb88678aedd0c4cc9552b20f4718550250574", "latest"] }'
diff -u --color \
  <(curl -s https://mainnet.infura.io/v3/$INFURA_PROJECT_ID --data "$rpc" | jq '.result') \
  <(curl -s https://rpc.gnosischain.com/ --data "$rpc" | jq '.result')
```
  • Loading branch information
Nicholas Rodrigues Lordello authored Aug 26, 2023
1 parent 3ec4816 commit b16235c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/contracts/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ fn main() {
builder
.add_network_str(MAINNET, "0x01DcB88678aedD0C4cC9552B20F4718550250574")
.add_network_str(GOERLI, "0x01DcB88678aedD0C4cC9552B20F4718550250574")
.add_network_str(GNOSIS, "0xD49Fa4e610d489aB98008bC4424B9F7276fF34bA")
.add_network_str(GNOSIS, "0x01DcB88678aedD0C4cC9552B20F4718550250574")
});
generate_contract("IUniswapLikeRouter");
generate_contract("IUniswapLikePair");
Expand Down

0 comments on commit b16235c

Please sign in to comment.