209 похожих чатов

Function driveCar(uint _userId) public olderThan(16, _userId) { // Some

function logic
} ребят, сейчас cryptozombies прохожу и немного непонятно, что делает вызов функции olderThan после public, для чего это?

5 ответов

13 просмотров

Это видимо модификатор, который проверяет что водитель старше 16

Я- Автор вопроса
Bakhtiyar Eightysix
Это видимо модификатор, который проверяет что води...

а если не старше? то функция не запускается?

Я- Автор вопроса

modifier olderThan(uint _age, uint _userId) { require (age[_userId] >= _age); _; } канешна

Я
modifier olderThan(uint _age, uint _userId) { re...

Вот тут у тебя проверка

Я- Автор вопроса

Похожие вопросы

Обсуждают сегодня

Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
Hi guys, any problem with Pulsebrige? Trying to transfer from wETH to ETH. First it tells me to connect my metamask "through mobile app" not desktop. Then I did and confirmed ...
Snowflakecrypto
13
any reference of this implementation?
BitBuddha
29
Ⓐrtto, [4/23/24 7:02 PM] Please explain more fully how it is not working exactly, and what are the steps you are taking, and what error messages come or what happens. Ⓐrtto, ...
Ezza Kezza
2
sounds like people have lost their kaspa on tradeogre... does this mean tradeogre not trustworthy?
Ezza Kezza
15
Btw looks like Kushti is at it with 6.0, has he shared any plans to stop developing Ergo or just to keep going indefinitely?
Original Ergonaut Manley
16
Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
Also, why can’t the community have a vote/ say when it comes to initiatives like buybacks. Isn’t the point of crypto decentralisation? Don’t we deserve input as long term supp...
👨🏽‍🦰
13
So much speculation in the last week. So much volatility in price. This is because Hedera has a GC that isn't using the network it's governing. Why aren't people asking why a...
Summit Seeker R
9
Any chance you send me instructions on how to bridge manually or how yo reverse the transaction ? Sorry but so many people are trying to scam. Its absurd.
Jochem
8
Карта сайта