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

Question: Preventing false claims ... #2

srikumarks opened this Issue Mar 6, 2018 · 1 comment


None yet
2 participants

srikumarks commented Mar 6, 2018

This is about the BatteryInsurancePolicy solidity code at the following line -

function claim(uint wearLevel) returns (bool) {

Is it not the case that the insured, after being validated by the insurer, can invoke the claim(wearLevel) call from the command line with whatever value they want and get their claim met even though their actual battery wear level is just fine? There seems to be no way in the contract to trust that the wearLevel being supplied by the insured is actually valid in order to release the claim.

Am I missing something?


This comment has been minimized.


dariusdev commented Mar 6, 2018

Hi srikumarks. Yes you can call this method when you want. These contracts are made only for demo purposes and not for real insurances

@dariusdev dariusdev closed this Mar 6, 2018

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