Skip to content

Commit

Permalink
Add trust creation code to factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusx1211 authored and ScreamingHawk committed Mar 19, 2024
1 parent 9d79eaf commit e10d82b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions contracts/trust/TrustFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import "./Trust.sol";


contract TrustFactory {
function trustCreationCode() external pure returns (bytes memory) {
return type(Trust).creationCode;
}

function addressOf(
address _owner,
address _beneficiary,
Expand Down
2 changes: 1 addition & 1 deletion networks/polygon.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
},
{
"contractName": "TrustFactory",
"address": "0x8E7e68e74065C561480d0DD5C13794B5dCF0DFda"
"address": "0x4483FaA9dEEDd6D6FaCFee9c686f1E394A1280f9"
}
]

0 comments on commit e10d82b

Please sign in to comment.