Skip to content

Commit

Permalink
[sdk-builder] Ensure string encoding is named a separate function
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnazario committed Sep 27, 2022
1 parent 7e00d2c commit d4fb91a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aptos-move/aptos-sdk-builder/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ pub(crate) fn mangle_type(type_tag: &TypeTag) -> String {
_ => format!("vec{}", mangle_type(type_tag)),
},
Struct(tag) => match tag {
tag if tag == Lazy::force(&str_tag) => "u8vector".into(),
tag if tag == Lazy::force(&str_tag) => "string".into(),
_ => type_not_allowed(type_tag),
},
Signer => type_not_allowed(type_tag),
Expand Down
2 changes: 1 addition & 1 deletion aptos-move/aptos-sdk-builder/src/golang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ func decode_{0}_argument(arg aptostypes.TransactionArgument) (value {1}, err err
format!("[]{}", Self::quote_type(type_tag))
}
Struct(struct_tag) => match struct_tag {
tag if tag == Lazy::force(&str_tag) => "Bytes".into(),
tag if tag == Lazy::force(&str_tag) => "[]uint8".into(),
_ => common::type_not_allowed(type_tag),
},
Signer => common::type_not_allowed(type_tag),
Expand Down

0 comments on commit d4fb91a

Please sign in to comment.