# Вызов Called при помощи address **Published by:** [Meninsy](https://paragraph.com/@vikk1/) **Published on:** 2024-01-31 **URL:** https://paragraph.com/@vikk1/called-address ## Content // SPDX-License-Identifier: MIT pragma solidity ^0.8.24; contract Called { bool public myBool; function foo() public pure returns (string memory) { return "A"; } } contract Caller { function callFooFunction(address _a) public returns (bytes memory) { (bool success, bytes memory data) = _a.call(abi.encodeWithSignature("foo()")); require(success, "Call failed"); return data; } } ## Publication Information - [Meninsy](https://paragraph.com/@vikk1/): Publication homepage - [All Posts](https://paragraph.com/@vikk1/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@vikk1): Subscribe to updates