Skip to content

Commit

Permalink
refactor(iota-types): remove iotafrens mentions (#3707)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M authored Oct 28, 2024
1 parent 38c0712 commit 07a5ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/iota-types/tests/serde_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use serde_with::serde_as;

#[test]
fn test_struct_tag_serde() {
let tag = parse_iota_struct_tag("0x7f89cdffd8968affa0b47bef91adc5314e19509080470c45bfd434cd83a766b::iotafrens::IotaFren<0x7f89cdffd8968affa0b47bef91adc5314e19509080470c45bfd434cd83a766b::capy::Capy>").unwrap();
let tag = parse_iota_struct_tag("0x7f89cdffd8968affa0b47bef91adc5314e19509080470c45bfd434cd83a766b::mymodule::MyStruct<0x7f89cdffd8968affa0b47bef91adc5314e19509080470c45bfd434cd83a766b::othermodule::OtherStruct>").unwrap();
#[serde_as]
#[derive(Serialize)]
struct TestStructTag(#[serde_as(as = "IotaStructTag")] StructTag);
Expand All @@ -23,7 +23,7 @@ fn test_struct_tag_serde() {
};
assert_eq!(
json,
"0x07f89cdffd8968affa0b47bef91adc5314e19509080470c45bfd434cd83a766b::iotafrens::IotaFren<0x07f89cdffd8968affa0b47bef91adc5314e19509080470c45bfd434cd83a766b::capy::Capy>"
"0x07f89cdffd8968affa0b47bef91adc5314e19509080470c45bfd434cd83a766b::mymodule::MyStruct<0x07f89cdffd8968affa0b47bef91adc5314e19509080470c45bfd434cd83a766b::othermodule::OtherStruct>"
);

let tag2 = parse_iota_struct_tag(&json).unwrap();
Expand Down

0 comments on commit 07a5ef3

Please sign in to comment.