@bananapus/core-v6 0.0.57 → 0.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/JBMultiTerminal.sol +4 -2
package/package.json
CHANGED
package/src/JBMultiTerminal.sol
CHANGED
|
@@ -64,7 +64,7 @@ contract JBMultiTerminal is JBPermissioned, ERC2771Context, IJBMultiTerminal {
|
|
|
64
64
|
//*********************************************************************//
|
|
65
65
|
|
|
66
66
|
error JBMultiTerminal_FeeTerminalNotFound(address token);
|
|
67
|
-
error JBMultiTerminal_MintNotAllowed();
|
|
67
|
+
error JBMultiTerminal_MintNotAllowed(uint256 projectId, address terminal);
|
|
68
68
|
error JBMultiTerminal_NoMsgValueAllowed(uint256 value);
|
|
69
69
|
error JBMultiTerminal_OverflowAlert(uint256 value, uint256 limit);
|
|
70
70
|
error JBMultiTerminal_PermitAllowanceNotEnough(uint256 amount, uint256 allowance);
|
|
@@ -401,7 +401,9 @@ contract JBMultiTerminal is JBPermissioned, ERC2771Context, IJBMultiTerminal {
|
|
|
401
401
|
// consumption, payout-limit drawdown, fee-free-surplus accounting); routing it
|
|
402
402
|
// through `sendPayoutsOf` is never the right surface.
|
|
403
403
|
// The try-catch in the split group lib catches this revert and restores the balance.
|
|
404
|
-
if (split.projectId == projectId)
|
|
404
|
+
if (split.projectId == projectId) {
|
|
405
|
+
revert JBMultiTerminal_MintNotAllowed({projectId: projectId, terminal: address(terminal)});
|
|
406
|
+
}
|
|
405
407
|
|
|
406
408
|
// Send the `projectId` in the metadata as a referral.
|
|
407
409
|
bytes memory metadata = bytes(abi.encodePacked(projectId));
|