I am trying to hit a function "addFunding" within https://github.com/gnosis/conditional-tokens-market-makers/blob/master/contracts/FixedProductMarketMaker.sol from my own contract.
When I hit the contract directly from my own wallet I don't have any trouble.
But when I try to make my own contract that calls that function, I always get a "ERC20: transfer amount exceeds balance: eth_call". I assume this is because it's looking at my contracts wallet amount, instead of my own, but I don't understand how to solve.
import { IFixedProductMarketMaker } from "./IFixedProductMarketMaker.sol";
contract PassThroughContract {
function addFunding(
IFixedProductMarketMaker marketMaker,
uint256 amount,
uint256[] memory distributionHint
) public {
marketMaker.addFunding(amount, distributionHint);
}
}
I am using Remix for this development.