Skip to content

Instantly share code, notes, and snippets.

@blakewest
Created April 26, 2021 14:49
Show Gist options
  • Save blakewest/65c5d5043d59df0a03120fc03dd06d42 to your computer and use it in GitHub Desktop.
Save blakewest/65c5d5043d59df0a03120fc03dd06d42 to your computer and use it in GitHub Desktop.
Solidity Blogpost #1: Config Contracts, snippet 1
import "./ICreditLineFactory.sol";
contract CreditDesk {
address public creditLineFactoryAddress;
function createCreditLine(CreditLineParams params) public {
require(validParams(params), "invalid params!");
ICreditLineFactory(creditLineFactoryAddress).createCreditLine(params);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment