問題タブ [modifiers]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ethereum - 堅牢性の修飾子
そのため、堅牢性に関する bitdegree コースの一環として、onlyOwner という名前の修飾子を作成し、それを changePrice 関数に割り当てようとしています。送信者のアドレスが所有者のアドレスと一致する場合にのみ、修飾子が関数の実行を許可するようにする必要があります。送信者のアドレスは、msg.sender を使用して取得できます。
これを入力して修飾子を作成しようとしましたが、うまくいきません。理由がわかりません。ヘルプ/推奨コードは大歓迎です!
}