Skip to content

Conversation

@rnbguy
Copy link
Member

@rnbguy rnbguy commented Jan 31, 2025

closes #243

@rnbguy rnbguy requested a review from soareschen January 31, 2025 12:29
@rnbguy rnbguy changed the title fix: use starknet block timestamp fix(relayer): use starknet block timestamp Jan 31, 2025
.1
.parse::<u64>()
.expect("valid sequence");
.map_err(|_| Chain::raise_error("valid sequence"))?;
Copy link
Contributor

Choose a reason for hiding this comment

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

The error should probably be "invalid" instead of "valid". We could also use CanRaiseError<ParseIntError> for this case.

Copy link
Member Author

Choose a reason for hiding this comment

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

nice catch. fixed at feb5c16

@rnbguy rnbguy merged commit a3248f9 into main Jan 31, 2025
5 checks passed
@rnbguy rnbguy deleted the rano/starknet-timestamp branch January 31, 2025 15:33
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.

[relayer] avoid using Timestamp::now() or Time::now()

3 participants