Skip to content

Commit

Permalink
Deploy new set of bridge contract (#268)
Browse files Browse the repository at this point in the history
* hotfix: initialize in gateway

* add config and deployment

* update deployments

* update new deployment
  • Loading branch information
nxqbao authored Aug 9, 2023
1 parent d042ae4 commit 42aadc9
Show file tree
Hide file tree
Showing 15 changed files with 3,621 additions and 405 deletions.
2 changes: 1 addition & 1 deletion contracts/extensions/WithdrawalLimitation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ abstract contract WithdrawalLimitation is GatewayV2 {
*
*/
function _setHighTierThresholds(address[] calldata _tokens, uint256[] calldata _thresholds) internal virtual {
if (_tokens.length == _thresholds.length) revert ErrLengthMismatch(msg.sig);
if (_tokens.length != _thresholds.length) revert ErrLengthMismatch(msg.sig);

for (uint256 _i; _i < _tokens.length; ) {
highTierThreshold[_tokens[_i]] = _thresholds[_i];
Expand Down
4 changes: 4 additions & 0 deletions contracts/mainchain/MainchainGovernanceAdmin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ contract MainchainGovernanceAdmin is AccessControlEnumerable, GovernanceRelay, G
address _bridgeContract,
address[] memory _relayers
) GovernanceAdmin(_roninChainId, _roninTrustedOrganizationContract, _bridgeContract, DEFAULT_EXPIRY_DURATION) {
round[5] = 1;
ProposalVote storage _latestProposalVote = vote[5][1];
_latestProposalVote.status = VoteStatus.Expired;

_setupRole(DEFAULT_ADMIN_ROLE, _roleSetter);
for (uint256 _i; _i < _relayers.length; ) {
_grantRole(RELAYER_ROLE, _relayers[_i]);
Expand Down
536 changes: 473 additions & 63 deletions deployments/goerli/MainchainGatewayV2Logic.json

Large diffs are not rendered by default.

391 changes: 391 additions & 0 deletions deployments/goerli/MainchainGatewayV2Proxy.json

Large diffs are not rendered by default.

Loading

0 comments on commit 42aadc9

Please sign in to comment.