What does mean in solidity language

0 votes

There are so many programs which use the _ symbol and I don’t understand why it’s used.

Ex:

modifier onlyOwner {

    if(msg.sender != owner) throw;

    _;

} 

Can someone tell?

Aug 10, 2018 in Blockchain by slayer
• 29,350 points
2,321 views

1 answer to this question.

0 votes

The _ symbol is a place holder. It is used to mentioned the place where you can include the function.

To know more on Solidity codes, visit: https://www.bitdegree.org/learn/solidity-function-modifiers/

answered Aug 10, 2018 by digger
• 26,740 points

Related Questions In Blockchain

0 votes
1 answer

what coding language is this in for ethereum and does this work for trading if setup right?

Hi there, I dont know about ethereum, but ...READ MORE

answered Jan 4, 2021 in Blockchain by Achuth
• 150 points
2,079 views
+1 vote
4 answers

What role does Orderer peer serves in Hyperledger Fabric??

Shared communication channel to clients and peers ...READ MORE

answered Apr 12, 2018 in Blockchain by Johnathon
• 9,090 points
2,649 views
0 votes
1 answer

What is the difference between if() and require() statement in solidity??

If() and require() have separate functions and ...READ MORE

answered Apr 18, 2018 in Blockchain by Shashank
• 10,400 points
4,758 views
+1 vote
1 answer

what is use of msg.sender in solidity code?

msg.sender(address) function indicated the sender of the ...READ MORE

answered Apr 25, 2018 in Blockchain by Shashank
• 10,400 points
8,455 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,655 views
+1 vote
3 answers

Removing double quotes from a string from JSON response in PHP

Just remove the json_encode call, and it should work: $resp ...READ MORE

answered Sep 12, 2018 in Blockchain by digger
• 26,740 points
43,726 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,211 views
+1 vote
1 answer

What problem does pow(proof of work) solves in blockchain?

Proof of Work: When a miner gets a ...READ MORE

answered Aug 6, 2018 in Blockchain by digger
• 26,740 points
893 views
+1 vote
3 answers

What is the pattern for handling throw on a Solidity contract in tests

In my opinion the cleanest way is: it("should ...READ MORE

answered Sep 25, 2018 in Blockchain by Lupin
1,517 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP