Skip to content

Commit

Permalink
fix(sol-macro): remove extra 0x in function docs (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Oct 7, 2023
1 parent 5b4fc67 commit aaaaa10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sol-macro/src/expand/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub(super) fn expand(cx: &ExpCtxt<'_>, function: &ItemFunction) -> Result<TokenS
let call_doc = docs.then(|| {
let selector = hex::encode_prefixed(selector.array);
attr::mk_doc(format!(
"Function with signature `{signature}` and selector `0x{selector}`.\n\
"Function with signature `{signature}` and selector `{selector}`.\n\
```solidity\n{function}\n```"
))
});
Expand Down

0 comments on commit aaaaa10

Please sign in to comment.