Skip to content

Commit

Permalink
Success adding support to uint32 type for soroban language.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadsamehh committed Jan 9, 2025
1 parent 2f43b87 commit 56a536a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified incrementer.wasm
Binary file not shown.
8 changes: 6 additions & 2 deletions src/emit/soroban/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,12 @@ impl SorobanTarget {
.unwrap_or_else(|| i.to_string())
.try_into()
.expect("function input name exceeds limit"),
type_: ScSpecTypeDef::U64, // TODO: Map type.
doc: StringM::default(), // TODO: Add doc.
type_: match p.ty {
ast::Type::Uint(64) => ScSpecTypeDef::U64,
ast::Type::Uint(32) => ScSpecTypeDef::U32,
_ => panic!("unsupported input type"),
}, // TODO: Map type.
doc: StringM::default(), // TODO: Add doc.
})
.collect::<Vec<_>>()
.try_into()
Expand Down

0 comments on commit 56a536a

Please sign in to comment.