Skip to content

Commit

Permalink
Create BridgeRegistry.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 27, 2024
1 parent b42358f commit 3c1cc66
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pragma solidity ^0.8.0;

contract BridgeRegistry {
mapping (address => address) public bridges;

function registerBridge(address _bridgeAddress) public {
bridges[msg.sender] = _bridgeAddress;
}

function getBridge(address _address) public view returns (address) {
return bridges[_address];
}
}

0 comments on commit 3c1cc66

Please sign in to comment.