Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verify clock is the caller #32

Merged
merged 2 commits into from
Jul 7, 2023
Merged

verify clock is the caller #32

merged 2 commits into from
Jul 7, 2023

Conversation

Art3miX
Copy link
Collaborator

@Art3miX Art3miX commented Jul 7, 2023

No description provided.

@Art3miX Art3miX requested a review from bekauz July 7, 2023 07:13
@@ -100,13 +100,17 @@ pub fn execute(
}

fn try_tick(deps: DepsMut, env: Env, info: MessageInfo) -> NeutronResult<Response<NeutronMsg>> {
// Verify caller is the clock
if info.sender != CLOCK_ADDRESS.load(deps.storage)? {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not use the verify_clock here from clock helpers?

@bekauz bekauz merged commit 0a8dc14 into main Jul 7, 2023
@Art3miX Art3miX deleted the art3mix/clock branch July 18, 2023 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants