Skip to content

Commit

Permalink
don't revert on getMostRecentMarket
Browse files Browse the repository at this point in the history
  • Loading branch information
Splidge committed Aug 24, 2021
1 parent 7d52c23 commit 4b30c9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/RCFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ contract RCFactory is NativeMetaTransaction, IRCFactory {
override
returns (address)
{
if (marketAddresses[_mode].length == 0) return address(0);
return marketAddresses[_mode][marketAddresses[_mode].length - (1)];
}

Expand Down

0 comments on commit 4b30c9d

Please sign in to comment.