Skip to content

Commit

Permalink
Merge pull request #216 from gildlab/2025-01-07-public
Browse files Browse the repository at this point in the history
virtual initialize
  • Loading branch information
thedavidmeister authored Jan 7, 2025
2 parents 87d2840 + d964f3d commit abbbd36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/concrete/receipt/Receipt.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ contract Receipt is IReceiptV2, ERC1155, ICloneableV2 {
/// Initializes the `Receipt` so that it is usable as a clonable
/// implementation in `ReceiptFactory`.
/// Compatible with `ICloneableV2`.
function initialize(bytes memory data) public override initializer returns (bytes32) {
function initialize(bytes memory data) public virtual override initializer returns (bytes32) {
// `uri` is overridden in this contract so we can just initialize
// `ERC1155` with an empty string.
__ERC1155_init("");
Expand Down
2 changes: 1 addition & 1 deletion src/concrete/vault/OffchainAssetReceiptVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ contract OffchainAssetReceiptVault is ReceiptVault, AccessControl {
/// this as appropriate according to standard Open Zeppelin access control
/// logic.
/// @param data All config required to initialize abi encoded.
function initialize(bytes memory data) public override initializer returns (bytes32) {
function initialize(bytes memory data) public virtual override initializer returns (bytes32) {
OffchainAssetVaultConfig memory config = abi.decode(data, (OffchainAssetVaultConfig));

__ReceiptVault_init(config.vaultConfig);
Expand Down

0 comments on commit abbbd36

Please sign in to comment.