Skip to content

Use block height for id on contract import - #209

Merged
DZakh merged 4 commits into
mainfrom
dz/use-block-height-for-id
Sep 17, 2024
Merged

DZakh merged 4 commits into
mainfrom
dz/use-block-height-for-id

Conversation

@DZakh

@DZakh DZakh commented Sep 17, 2024

Copy link
Copy Markdown
Member

No description provided.

@DZakh
DZakh requested a review from JonoPrest September 17, 2024 13:42
true => format!("${{{event_var_name}.transaction.id}}"),
false => format!("${{{event_var_name}.block.number}}"),
let block_number_field = match is_fuel {
true => "heigth",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think height is spelled wrong here.

@JonoPrest JonoPrest left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you double check that it works? I think there is a typo.

@DZakh

DZakh commented Sep 17, 2024

Copy link
Copy Markdown
Member Author

Fixed and tested πŸ™

@DZakh
DZakh requested a review from JonoPrest September 17, 2024 14:29

@JonoPrest JonoPrest left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry looks like another one...

Comment thread codegenerator/cli/src/hbs_templating/contract_import_templates.rs Outdated
Co-authored-by: Jono Prest <65739024+JonoPrest@users.noreply.github.com>
@DZakh

DZakh commented Sep 17, 2024

Copy link
Copy Markdown
Member Author

I'm surprised by my ability making silly mistakes when I'm lazy to test something because I'm 100% sure that it works

@JonoPrest JonoPrest left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok cool, looks great πŸ‘ŒπŸΌ

@JonoPrest

Copy link
Copy Markdown
Collaborator

I'm surprised by my ability making silly mistakes when I'm lazy to test something because I'm 100% sure that it works

No problem at all πŸ™πŸΌ that's why we have reviews.

@DZakh
DZakh merged commit 20bae84 into main Sep 17, 2024
@DZakh
DZakh deleted the dz/use-block-height-for-id branch September 17, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants