Last updated 3 months ago
Not inherited by child contracts. It must be imported and defined in every contract in which the "Using Directive" is used.
// SPDX-License-Identifier: MIT pragma solidity 0.8.26; import {Address} from "@openzeppelin/contracts/utils/Address.sol"; contract UsingDirective { using Address for address payable; function sendETH(address _to) public payable { payable(address(_to)).sendValue(msg.value); } }