mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
test fix
This commit is contained in:
parent
e8a7a7715e
commit
b14642548f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user