mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-02 13:23:10 +00:00
fix(integration): fixes hardhat not recognising custom error (#243)
Co-authored-by: Dmitriy Ryajov <dryajov@gmail.com>
This commit is contained in:
parent
06c76e59b5
commit
3661376327
@ -544,7 +544,11 @@ contract Marketplace is SlotReservations, Proofs, StateRetrieval, Endian {
|
||||
|
||||
function getActiveSlot(
|
||||
SlotId slotId
|
||||
) public view slotIsNotFree(slotId) returns (ActiveSlot memory) {
|
||||
) public view returns (ActiveSlot memory) {
|
||||
// Modifier `slotIsNotFree(slotId)` works here, but using the modifier
|
||||
// causes hardhat to return an error "reverted with an unrecognized custom
|
||||
// error (return data: 0x8b41ec7f)".
|
||||
if (_slots[slotId].state == SlotState.Free) revert Marketplace_SlotIsFree();
|
||||
Slot storage slot = _slots[slotId];
|
||||
ActiveSlot memory activeSlot;
|
||||
activeSlot.request = _requests[slot.requestId];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user