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

Update transmit in facet to accept bytes array for asset flexibility #1163

Merged
merged 10 commits into from
Oct 26, 2024

Conversation

pizzaman1337
Copy link
Contributor

@pizzaman1337 pizzaman1337 commented Oct 21, 2024

Updates TransmitInFacet to handle 2d bytes array for asset transmission flexibility.

(This PR will be updated to merge into the main transmission branch once the master merge branch is merged).

This also includes:

  • Updates tests from using require to assert
  • Adds test for totalHarvested and totalSlashed
  • Disallows the transfer of germinating deposits
  • Fixes TransmitOutFacet to pass through data from it's input param to the TransmitInFacet (bug fix)

@@ -25,7 +25,7 @@ contract TransmitOutFacet is Invariable {
LibTransmitOut.SourceDeposit[] calldata sourceDeposits,
LibTransmitOut.SourcePlot[] calldata sourcePlots,
LibTransmitOut.SourceFertilizer[] calldata sourceFertilizer,
bytes calldata // data
bytes calldata data
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@funderbrker I removed the // here so that the data var can be passed into the transmitIn function (line 47).

Base automatically changed from transmission-merge-master-2 to transmission October 26, 2024 20:31
@Brean0
Copy link
Contributor

Brean0 commented Oct 26, 2024

lgtm!

@Brean0 Brean0 merged commit 304fdf6 into transmission Oct 26, 2024
2 checks passed
@Brean0 Brean0 deleted the transmission-bytes-array branch October 26, 2024 20:32
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