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

Unused return value from orderbook.findNewOwner() and treasury.payRent() #53

Open
code423n4 opened this issue Jun 15, 2021 · 2 comments

Comments

@code423n4
Copy link
Contributor

Handle

JMukesh

Vulnerability details

Impact

checking the return value from function indicates ether function call was success or failure because of that, we should utilise the return value

Proof of Concept

In RCmarket.sol

https://github.com/code-423n4/2021-06-realitycards/blob/main/contracts/RCMarket.sol#L1025

https://github.com/code-423n4/2021-06-realitycards/blob/main/contracts/RCMarket.sol#L1060

Tools Used

slither

Recommended Mitigation Steps

Utilize return value

@code423n4 code423n4 added 1 (Low Risk) bug Something isn't working labels Jun 15, 2021
code423n4 added a commit that referenced this issue Jun 15, 2021
@Splidge
Copy link
Collaborator

Splidge commented Jun 15, 2021

These return values aren't required, instead of using them I'll just remove them.

@Splidge
Copy link
Collaborator

Splidge commented Jun 21, 2021

fixed here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants