github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/test/contracts/auto/Interaction.sol (about) 1 // SPDX-License-Identifier: GPL-3.0 2 pragma solidity >=0.7.0 <0.9.0; 3 4 interface ICounter { 5 function count() external view returns (uint); 6 function increment() external; 7 } 8 9 contract Interaction { 10 address counterAddr; 11 12 function setCounterAddr(address _counter) public payable { 13 counterAddr = _counter; 14 } 15 16 function getCount() external view returns (uint) { 17 return ICounter(counterAddr).count(); 18 } 19 }