Skip to content

Commit 61346b2

Browse files
committed
fix: add collection id to rav typehash (OZ SR-02)
Signed-off-by: Tomás Migone <[email protected]>
1 parent 29285f4 commit 61346b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/horizon/contracts/payments/collectors/GraphTallyCollector.sol

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ contract GraphTallyCollector is EIP712, GraphDirectory, Authorizable, IGraphTall
2828
/// @notice The EIP712 typehash for the ReceiptAggregateVoucher struct
2929
bytes32 private constant EIP712_RAV_TYPEHASH =
3030
keccak256(
31-
"ReceiptAggregateVoucher(address payer,address serviceProvider,address dataService,uint64 timestampNs,uint128 valueAggregate,bytes metadata)"
31+
"ReceiptAggregateVoucher(bytes32 collectionId,address payer,address serviceProvider,address dataService,uint64 timestampNs,uint128 valueAggregate,bytes metadata)"
3232
);
3333

3434
/// @notice Tracks the amount of tokens already collected by a data service from a payer to a receiver.
@@ -189,6 +189,7 @@ contract GraphTallyCollector is EIP712, GraphDirectory, Authorizable, IGraphTall
189189
keccak256(
190190
abi.encode(
191191
EIP712_RAV_TYPEHASH,
192+
_rav.collectionId,
192193
_rav.payer,
193194
_rav.serviceProvider,
194195
_rav.dataService,

0 commit comments

Comments
 (0)