Skip to content

contracts/oracle: manual whitelist#784

Open
rgeraldes wants to merge 4 commits intodevfrom
feature/oracle-whitelist#781
Open

contracts/oracle: manual whitelist#784
rgeraldes wants to merge 4 commits intodevfrom
feature/oracle-whitelist#781

Conversation

@rgeraldes
Copy link
Contributor

Closes #781

@rgeraldes
Copy link
Contributor Author

@JuliusBrain can you help me with the JS tests?


modifier onlyOracle {
require(isOracle(msg.sender));
modifier onlyOracle(address oracle) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because the it's no longer the msg sender that registers himself. It's kowala

_insertOracle(msg.sender, msg.value);
_insertOracle(identity);
}
//function registerOracle() public payable whenNotPaused onlyNewCandidate(identity) onlySuperNode {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we delete commented code?

function deregisterOracle(address identity) public whenNotPaused onlyOwner onlyOracle(identity) {
_deleteOracle(identity);
}
//function deregisterOracle() public whenNotPaused onlyOracle(msg.sender) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we delete commented code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants