Skip to content

Commit 56a536a

Browse files
committed
Success adding support to uint32 type for soroban language.
1 parent 2f43b87 commit 56a536a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.DS_Store

0 Bytes
Binary file not shown.

incrementer.wasm

-15 Bytes
Binary file not shown.

src/emit/soroban/mod.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,12 @@ impl SorobanTarget {
174174
.unwrap_or_else(|| i.to_string())
175175
.try_into()
176176
.expect("function input name exceeds limit"),
177-
type_: ScSpecTypeDef::U64, // TODO: Map type.
178-
doc: StringM::default(), // TODO: Add doc.
177+
type_: match p.ty {
178+
ast::Type::Uint(64) => ScSpecTypeDef::U64,
179+
ast::Type::Uint(32) => ScSpecTypeDef::U32,
180+
_ => panic!("unsupported input type"),
181+
}, // TODO: Map type.
182+
doc: StringM::default(), // TODO: Add doc.
179183
})
180184
.collect::<Vec<_>>()
181185
.try_into()

0 commit comments

Comments
 (0)