Skip to content

Commit

Permalink
Merge branch 'main' into fix-ledgerentries-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio authored Nov 21, 2023
2 parents a5710be + c560bdd commit 52c9239
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions cmd/crates/soroban-spec-typescript/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,12 @@ pub fn entry_to_ts(entry: &Entry) -> String {
output = format!(r#"return {output};"#);
};
let parse_result_xdr = if return_type == "void" {
r#"parseResultXdr: () => {}"#.to_owned()
r"parseResultXdr: () => {}".to_owned()
} else {
format!(
r#"parseResultXdr: (xdr): {return_type} => {{
r"parseResultXdr: (xdr): {return_type} => {{
{output}
}}"#
}}"
)
};
let js_name = jsify_name(name);
Expand Down
10 changes: 5 additions & 5 deletions cmd/crates/soroban-test/tests/it/arg_parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fn parse_i256() {

#[test]
fn parse_bytes() {
let b = from_string_primitive(r#"beefface"#, &ScSpecTypeDef::Bytes).unwrap();
let b = from_string_primitive(r"beefface", &ScSpecTypeDef::Bytes).unwrap();
assert_eq!(
b,
ScVal::Bytes(ScBytes(vec![0xbe, 0xef, 0xfa, 0xce].try_into().unwrap()))
Expand All @@ -100,7 +100,7 @@ fn parse_bytes() {

#[test]
fn parse_bytes_when_hex_is_all_numbers() {
let b = from_string_primitive(r#"4554"#, &ScSpecTypeDef::Bytes).unwrap();
let b = from_string_primitive(r"4554", &ScSpecTypeDef::Bytes).unwrap();
assert_eq!(
b,
ScVal::Bytes(ScBytes(vec![0x45, 0x54].try_into().unwrap()))
Expand All @@ -111,7 +111,7 @@ fn parse_bytes_when_hex_is_all_numbers() {
#[test]
fn parse_bytesn() {
let b = from_string_primitive(
r#"beefface"#,
r"beefface",
&ScSpecTypeDef::BytesN(ScSpecTypeBytesN { n: 4 }),
)
.unwrap();
Expand All @@ -124,8 +124,8 @@ fn parse_bytesn() {

#[test]
fn parse_bytesn_when_hex_is_all_numbers() {
let b = from_string_primitive(r#"4554"#, &ScSpecTypeDef::BytesN(ScSpecTypeBytesN { n: 2 }))
.unwrap();
let b =
from_string_primitive(r"4554", &ScSpecTypeDef::BytesN(ScSpecTypeBytesN { n: 2 })).unwrap();
assert_eq!(
b,
ScVal::Bytes(ScBytes(vec![0x45, 0x54].try_into().unwrap()))
Expand Down

0 comments on commit 52c9239

Please sign in to comment.