[marketplace] Formatting
This commit is contained in:
parent
6e0dfdf7db
commit
6c52f60381
|
@ -35,7 +35,11 @@ contract Storage is Collateral, Marketplace {
|
|||
minCollateralThreshold = _minCollateralThreshold;
|
||||
}
|
||||
|
||||
function getRequest(RequestId requestId) public view returns (Request memory) {
|
||||
function getRequest(RequestId requestId)
|
||||
public
|
||||
view
|
||||
returns (Request memory)
|
||||
{
|
||||
return _request(requestId);
|
||||
}
|
||||
|
||||
|
@ -52,21 +56,21 @@ contract Storage is Collateral, Marketplace {
|
|||
}
|
||||
|
||||
function isProofRequired(SlotId slotId) public view returns (bool) {
|
||||
if(!_slotAcceptsProofs(slotId)) {
|
||||
if (!_slotAcceptsProofs(slotId)) {
|
||||
return false;
|
||||
}
|
||||
return _isProofRequired(_toProofId(slotId));
|
||||
}
|
||||
|
||||
function willProofBeRequired(SlotId slotId) public view returns (bool) {
|
||||
if(!_slotAcceptsProofs(slotId)) {
|
||||
if (!_slotAcceptsProofs(slotId)) {
|
||||
return false;
|
||||
}
|
||||
return _willProofBeRequired(_toProofId(slotId));
|
||||
}
|
||||
|
||||
function getChallenge(SlotId slotId) public view returns (bytes32) {
|
||||
if(!_slotAcceptsProofs(slotId)) {
|
||||
if (!_slotAcceptsProofs(slotId)) {
|
||||
return bytes32(0);
|
||||
}
|
||||
return _getChallenge(_toProofId(slotId));
|
||||
|
|
|
@ -12,7 +12,13 @@ contract TestMarketplace is Marketplace {
|
|||
uint256 _proofTimeout,
|
||||
uint8 _proofDowntime
|
||||
)
|
||||
Marketplace(_token, _collateral, _proofPeriod,_proofTimeout,_proofDowntime)
|
||||
Marketplace(
|
||||
_token,
|
||||
_collateral,
|
||||
_proofPeriod,
|
||||
_proofTimeout,
|
||||
_proofDowntime
|
||||
)
|
||||
// solhint-disable-next-line no-empty-blocks
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue