6

如何在自己的合约中调用链上他人已经部署其他合约的方法? | 登链社区 | 技术问答

 2 years ago
source link: https://learnblockchain.cn/question/2870
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

如何在自己的合约中调用链上他人已经部署其他合约的方法? | 登链社区 | 技术问答

20 如何在自己的合约中调用链上他人已经部署其他合约的方法?

回答问题即可获得 5 贡献值,回答被采纳后即可获得 25 学分。
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.16 <0.9.0;

contract SimpleStorage {
    uint storedData;

    function test(uint x) public {
	领取预售(他人已经部署的合约A的领取方法);
	添加流动性(走薄饼);
        薄饼交易(走024E路由);	
    }}

请问这方面的知识需要学习那些重点内容? 具体思路是用到那些方法?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK