0
 function bid(bytes32 blindBid) public payable validPhase(Phase.Bidding)
    {
        bids[msg.sender] = Bid({
            blindedBid: blindBid,
            deposit: msg.value
        });
    }

I just practiced blind auction smart contract example. But I don't get it : meaning in the function. Is this a comparison with blindedBid and blindBid ? But then deposit: msg.value doesn't make sense.

1 Answer 1

1

This is creating a Bid structure, where: represents =, just like key=value, just like a JSON assignment, so hopefully you get the idea.😎

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.