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 Reentrancy Test #59

Merged
merged 5 commits into from
Jul 2, 2024
Merged

Fix Reentrancy Test #59

merged 5 commits into from
Jul 2, 2024

Conversation

Leonard-Pat
Copy link
Contributor

  • updated reentrant erc20

Comment on lines 125 to 129
let mut calldata: Array<felt252> = array![];
calldata.append_serde(gift);
calldata.append_serde(self.receiver.read());
calldata.append_serde(self.dust_receiver.read());
calldata.append_serde(self.signature.read());
Copy link
Contributor

Choose a reason for hiding this comment

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

can you do something like

calldata = serialize(@(
  gift,
  self,receiver.read(),
  ...
```
));

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@sgc-code sgc-code merged commit b0f1afa into develop Jul 2, 2024
5 checks passed
@sgc-code sgc-code deleted the fix/reentrancy branch July 5, 2024 14: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