Skip to content

Commit

Permalink
Merge pull request #215 from gildlab/2025-01-07-public
Browse files Browse the repository at this point in the history
make initialize public
  • Loading branch information
thedavidmeister authored Jan 7, 2025
2 parents d8fac8d + a1e1586 commit 87d2840
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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) external override initializer returns (bytes32) {
function initialize(bytes memory data) public 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/ERC20PriceOracleReceiptVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ contract ERC20PriceOracleReceiptVault is ReceiptVault {
constructor(ReceiptVaultConstructionConfig memory config) ReceiptVault(config) {}

/// Initialization of the underlying receipt vault and price oracle.
function initialize(bytes memory data) external virtual override initializer returns (bytes32) {
function initialize(bytes memory data) public virtual override initializer returns (bytes32) {
ERC20PriceOracleVaultConfig memory config = abi.decode(data, (ERC20PriceOracleVaultConfig));
priceOracle = IPriceOracleV2(config.priceOracle);

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) external override initializer returns (bytes32) {
function initialize(bytes memory data) public override initializer returns (bytes32) {
OffchainAssetVaultConfig memory config = abi.decode(data, (OffchainAssetVaultConfig));

__ReceiptVault_init(config.vaultConfig);
Expand Down

0 comments on commit 87d2840

Please sign in to comment.