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

add verifier middleware #678

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft

add verifier middleware #678

wants to merge 16 commits into from

Conversation

blue-note
Copy link
Contributor

No description provided.

Copy link
Contributor

@0xekez 0xekez left a comment

Choose a reason for hiding this comment

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

🙇

Comment on lines +58 to +65
// Validate that the message has not expired
if let Some(expiration) = payload.expiration {
if expiration.is_expired(&env.block) {
return Err(ContractError::MessageExpired {});
}
}

let validated_contract_addr = api.addr_validate(&payload.contract_address)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

what would you think of doing a CheckedPayload type?

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.

3 participants