Created
April 26, 2021 14:49
-
-
Save blakewest/65c5d5043d59df0a03120fc03dd06d42 to your computer and use it in GitHub Desktop.
Solidity Blogpost #1: Config Contracts, snippet 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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