Co-authored-by: Claudia Barcelo <claudiabarcelovaldes40@gmail.com>pull/840/head
parent
8da877e262
commit
3f767d765e
@ -0,0 +1,17 @@ |
||||
pragma solidity ^0.7.0; |
||||
|
||||
|
||||
contract OtherContractA { |
||||
uint x; |
||||
constructor() public { |
||||
} |
||||
|
||||
function sendFn() public { |
||||
x = 5; |
||||
} |
||||
|
||||
function callFn() public pure returns (uint){ |
||||
uint y = 5; |
||||
return y; |
||||
} |
||||
} |
@ -0,0 +1,15 @@ |
||||
const OtherContractA = artifacts.require("OtherContractA"); |
||||
|
||||
contract("otherContractA", function(accounts) { |
||||
let instance; |
||||
|
||||
before(async () => instance = await OtherContractA.new()) |
||||
|
||||
it('sends', async function(){ |
||||
await instance.sendFn(); |
||||
}); |
||||
|
||||
it('calls', async function(){ |
||||
await instance.callFn(); |
||||
}) |
||||
}); |
Loading…
Reference in new issue