Skip to content

Commit

Permalink
expand into hex-encoded integer literals for metadata selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed Sep 19, 2021
1 parent f81ed9e commit 0ef98cc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/lang/codegen/src/generator/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ impl Metadata<'_> {
let span = constructor.span();
let attrs = constructor.attrs();
let docs = Self::extract_doc_comments(attrs);
let selector = constructor.composed_selector();
let selector_bytes = selector.as_bytes();
let selector_bytes = constructor.composed_selector().hex_lits();
let constructor = constructor.callable();
let ident = constructor.ident();
let ident_lit = ident.to_string();
Expand Down Expand Up @@ -230,8 +229,7 @@ impl Metadata<'_> {
let span = message.span();
let attrs = message.attrs();
let docs = Self::extract_doc_comments(attrs);
let selector = message.composed_selector();
let selector_bytes = selector.as_bytes();
let selector_bytes = message.composed_selector().hex_lits();
let is_payable = message.is_payable();
let message = message.callable();
let mutates = message.receiver().is_ref_mut();
Expand Down

0 comments on commit 0ef98cc

Please sign in to comment.