0

solidity interface 与 modifier

 2 years ago
source link: https://learnblockchain.cn/question/2925
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.

solidity interface 与 modifier

被调用的合约

contract A {
	modifer m(uint _pid){
		//略
		_;
	}
	//被调用函数
	function f(address add, uint _pid) m(pid) external {
		//略
	}
}

现在想在另一个合约中通过接口实例化合约调用该方法,这个带函数修改器函数的interface该怎么写呢

interface IA{
	function f(address, uint) ??? external;
}

最佳答案 16小时前

忽略修饰器就行了

blockc0de - 自由职业者
采纳率 39% | 回答于 18小时前

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK