starkgate-contracts
starkgate-contracts copied to clipboard
Make StarknetTokenBridge EIC2771 compliant
This PR aims at making the contract StarknetTokenBridge EIP2771 compliant:
- by inheriting from the contract ERC2771Recipient.sol
- by replacing
msg.senderwith_msgSender() - by adding a function to set the trusted forwarder, and another to add recipient version.
We followed this guide from Biconomy to edit the contract.