File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,14 +5,16 @@ import {IERC20Bridge} from "./IERC20Bridge.sol";
55import {ISignalService} from "./ISignalService.sol " ;
66
77import {IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol " ;
8- import {ReentrancyGuardTransient} from " @openzeppelin/contracts/utils/ReentrancyGuardTransient.sol " ;
8+
99import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol " ;
10+ import {ReentrancyGuardTransient} from "@openzeppelin/contracts/utils/ReentrancyGuardTransient.sol " ;
1011
1112/// @dev In contrast to the `SignalService`, this contract does not expect the bridge to be deployed on the same
1213/// address on both chains. This is because it is designed so that each rollup has its own independent bridge contract,
1314/// and they may furthermore decide to deploy a new version of the bridge in the future.
1415contract ERC20Bridge is IERC20Bridge , ReentrancyGuardTransient {
1516 using SafeERC20 for IERC20 ;
17+
1618 mapping (bytes32 id = > bool processed ) private _processed;
1719
1820 /// Incremental nonce to generate unique deposit IDs.
You can’t perform that action at this time.
0 commit comments