Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix linting #486

Merged
merged 10 commits into from
May 22, 2024
Merged

Conversation

Raid5594
Copy link
Collaborator

What ❔

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

kelemeno and others added 3 commits May 22, 2024 14:09

// Note that we don't save the deposited amount, as this is for the base token, which gets sent to the refundRecipient if the tx fails
emit BridgehubDepositBaseTokenInitiated(_chainId, _prevMsgSender, _assetInfo, _amount);
// We could use this data instead of the above
// emit BridgehubMintData(bridgeMintData);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There's probably a better way to use this data

Copy link
Contributor

Choose a reason for hiding this comment

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

We can emit the event in the L1StandardAsset, no? We could emit the data hash though. What do you recommend?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it's more cohesive if we have events in sharedbridge, so we're indexing in 1 place

By the way, do we need to add l2Receiver in L1NTV?

I would actually not create any variable in memory to make the call more efficient.
If we have everything we need, then just suppress the other linting error (unused return value)

@kelemeno kelemeno merged commit 51d4759 into kl/custom-asset-bridging May 22, 2024
20 of 21 checks passed
@kelemeno kelemeno deleted the ra/fix-ci-custom-asset-bridging branch May 22, 2024 16:30
kelemeno added a commit that referenced this pull request May 22, 2024
Co-authored-by: Raid Ateir <ra@matterlabs.dev>
Co-authored-by: kelemeno <kl@matterlabs.dev>
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.

None yet

2 participants