-
Notifications
You must be signed in to change notification settings - Fork 234
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
feat(rpc): Introduce starknet_getMessagesStatus
#2301
Conversation
8bb7b90
to
9ea20d2
Compare
starknet_getMessagesStatus
starknet_getMessagesStatus
9ea20d2
to
65817e6
Compare
d069a6e
to
fb6f46d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thank you for your perseverance throughout the whole implementation of this method! 🎉
crates/common/src/lib.rs
Outdated
impl From<Chain> for ChainId { | ||
fn from(chain: Chain) -> Self { | ||
match chain { | ||
Chain::Mainnet => ChainId::MAINNET, | ||
Chain::SepoliaTestnet => ChainId::SEPOLIA_TESTNET, | ||
Chain::SepoliaIntegration => ChainId::SEPOLIA_INTEGRATION, | ||
Chain::Custom => panic!("Custom chain is not supported"), | ||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this conversion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also introduces new L1BlockNumber for L1 block numbers to avoid confusion, as well as L1TransactionHash.
This is great! The only thing that would have made it only slightly greater is if these were separate PRs because it's easier to review that way 😄
No complaints though, just a small note for the future.
fb6f46d
to
fb5161c
Compare
fb5161c
to
996ccb8
Compare
Introduce
starknet_getMessagesStatus
Also introduces new
L1BlockNumber
for L1 block numbers to avoid confusion, as well asL1TransactionHash
.Closes #2243
Closes #2182