@@ -51,19 +51,19 @@ contract ByocFactory is IByocFactory, ERC2771Context, AccessControlEnumerable, T
5151 bytes memory _constructorArgs ,
5252 bytes32 _salt ,
5353 uint256 _value ,
54- ThirdwebContract.ThirdwebInfo memory _thirdwebInfo
54+ string memory publishMetadataUri
5555 ) external onlyUnpausedOrAdmin returns (address deployedAddress ) {
56- require (bytes (_thirdwebInfo. publishMetadataUri).length > 0 , "No publish metadata " );
56+ require (bytes (publishMetadataUri).length > 0 , "No publish metadata " );
5757
5858 bytes memory contractBytecode = abi.encodePacked (_contractBytecode, _constructorArgs);
5959 bytes32 salt = _salt == "" ? keccak256 (abi.encodePacked (_msgSender (), block .number )) : _salt;
6060
6161 deployedAddress = Create2.deploy (_value, salt, contractBytecode);
6262
63- ThirdwebContract (deployedAddress).setThirdwebInfo (_thirdwebInfo );
63+ ThirdwebContract (deployedAddress).setPublisheMetadataUi (publishMetadataUri );
6464 require (
6565 keccak256 (bytes (ThirdwebContract (deployedAddress).getPublishMetadataUri ())) ==
66- keccak256 (bytes (_thirdwebInfo. publishMetadataUri)),
66+ keccak256 (bytes (publishMetadataUri)),
6767 "Not a thirdweb contract "
6868 );
6969
@@ -79,15 +79,15 @@ contract ByocFactory is IByocFactory, ERC2771Context, AccessControlEnumerable, T
7979 bytes memory _initializeData ,
8080 bytes32 _salt ,
8181 uint256 _value ,
82- ThirdwebContract.ThirdwebInfo memory _thirdwebInfo
82+ string memory publishMetadataUri
8383 ) external onlyUnpausedOrAdmin returns (address deployedAddress ) {
8484 bytes32 salt = _salt == "" ? keccak256 (abi.encodePacked (_msgSender (), block .number )) : _salt;
8585 deployedAddress = Clones.cloneDeterministic (_implementation, salt);
8686
87- ThirdwebContract (deployedAddress).setThirdwebInfo (_thirdwebInfo );
87+ ThirdwebContract (deployedAddress).setPublisheMetadataUi (publishMetadataUri );
8888 require (
8989 keccak256 (bytes (ThirdwebContract (deployedAddress).getPublishMetadataUri ())) ==
90- keccak256 (bytes (_thirdwebInfo. publishMetadataUri)),
90+ keccak256 (bytes (publishMetadataUri)),
9191 "Not a thirdweb contract "
9292 );
9393
0 commit comments