This commit is contained in:
Thrilok Kumar 2020-08-03 12:49:29 +05:30
parent e8a7a7715e
commit b14642548f
2 changed files with 6 additions and 2 deletions

View File

@ -15,6 +15,10 @@ contract MockConnectOne is ConnectOne {
function setUint(uint setId, uint val) override internal {}
function sub(uint x, uint y) internal override pure returns (uint z) {
z = 100000;
z = 21 * 10 ** 18;
}
function getOneProtoAddress() internal override view returns (address payable) {
return payable(oneProtoAddr);
}
}

View File

@ -50,7 +50,7 @@ const {
5,
0
).encodeABI();
await mock.givenMethodReturnUint(getExpectedReturn, String(sellAmt));
await mock.givenMethodReturn(getExpectedReturn, web3.eth.abi.encodeParameters(["uint256", "uint256[]"], [20000, [0,0,0,1]]));
// mocking stake
let swapWithReferral = await oneProtoContract.methods.swapWithReferral(
mock.address,