Skip to content

Commit

Permalink
feat: add batch id return (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCardinalError authored Oct 28, 2023
1 parent 1376fb7 commit 04ba6ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PostageStamp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ contract PostageStamp is AccessControl, Pausable {
uint8 _bucketDepth,
bytes32 _nonce,
bool _immutable
) external whenNotPaused {
) external whenNotPaused returns (bytes32) {
if (_owner == address(0)) {
revert ZeroAddress();
}
Expand Down Expand Up @@ -222,6 +222,8 @@ contract PostageStamp is AccessControl, Pausable {
tree.insert(batchId, normalisedBalance);

emit BatchCreated(batchId, totalAmount, normalisedBalance, _owner, _depth, _bucketDepth, _immutable);

return batchId;
}

/**
Expand Down

0 comments on commit 04ba6ed

Please sign in to comment.