-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added require to test that the result value from the gateway is…
… equal to the calculated value
- Loading branch information
1 parent
377b7c6
commit b8ba1c6
Showing
4 changed files
with
14 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.9; | ||
|
||
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; | ||
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; | ||
|
||
contract LineaResolver is Ownable { | ||
mapping(bytes32 => address) addresses; | ||
mapping(bytes32 => address) addresses; | ||
|
||
event AddrChanged(bytes32 indexed node, address a); | ||
event AddrChanged(bytes32 indexed node, address a); | ||
|
||
function setAddr(bytes32 node, address _addr) public onlyOwner { | ||
addresses[node] = _addr; | ||
emit AddrChanged(node, _addr); | ||
} | ||
function setAddr(bytes32 node, address _addr) public { | ||
addresses[node] = _addr; | ||
emit AddrChanged(node, _addr); | ||
} | ||
|
||
function addr(bytes32 node) public view returns (address) { | ||
return addresses[node]; | ||
} | ||
function addr(bytes32 node) public view returns (address) { | ||
return addresses[node]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters