Implement a reverse polish calculator for calldata arithmetic

This commit is contained in:
Omar Abdulla committed 2025-07-24 17:25:36 +03:00
1 parent aabcd06254
commit 772c5f79fc
4 files changed
+392 -108

No files matched your search

@@ -48,11 +48,7 @@ macro_rules! define_wrapper_type {
$vis struct $ident($ty);
impl $ident {
pub fn new(value: $ty) -> Self {
Self(value)
}
pub fn new_from<T: Into<$ty>>(value: T) -> Self {
pub fn new(value: impl Into<$ty>) -> Self {
Self(value.into())
}