Skip to content

Commit e139bd3

Browse files
kongliangzhongdong77
authored andcommitted
[Protocol3] allow offchainData even when onchainDataAvailability is on (#290)
* allow offchainData when onchainDataAvailability is on * Update IExchange.sol
1 parent 4df1cb1 commit e139bd3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

packages/loopring_v3/contracts/iface/IExchange.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ contract IExchange
503503
/// - Mode 0: No compression. The data following the mode byte is used as is.
504504
/// - Mode 1: An IDecompressor address (20 bytes) is stored after the mode byte.
505505
/// IDecompressor.decompress() will be called to decompress the following data.
506-
/// @param offchainData Arbitrary data for off-chain data-availability, i.e.,
506+
/// @param offchainData Arbitrary data, mainly for off-chain data-availability, i.e.,
507507
/// the multihash of the IPFS file that contains the block data.
508508
function commitBlock(
509509
uint8 blockType,

packages/loopring_v3/contracts/impl/libexchange/ExchangeBlocks.sol

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ library ExchangeBlocks
6969
)
7070
internal // inline call
7171
{
72-
if (S.onchainDataAvailability) {
73-
require(offchainData.length == 0, "INVALID_OFFCHAIN_DATA");
74-
}
75-
7672
commitBlockInternal(
7773
S,
7874
ExchangeData.BlockType(blockType),

0 commit comments

Comments
 (0)