@@ -39,11 +39,9 @@ contract TheCompactCore is ERC6909, Deposit {
39
39
_register (compact.sponsor, digest, compact.expires);
40
40
}
41
41
42
- function depositAndRegister (ITheCompactCore.Compact calldata compact , bytes32 witness , string calldata typeString ) external payable returns (ITheCompactCore.Compact memory registeredCompact ) {
43
- registeredCompact = compact;
42
+ function depositAndRegister (ITheCompactCore.Compact calldata compact , bytes32 witness , string calldata typeString ) external payable {
44
43
uint256 length = compact.inputs.length ;
45
44
uint256 nativeAmount = msg .value ;
46
- bool delegated = msg .sender != compact.sponsor;
47
45
for (uint256 i = 0 ; i < length; ++ i) {
48
46
address token = IdLib.toToken (compact.inputs[i].id);
49
47
uint256 amount = compact.inputs[i].amount;
@@ -60,13 +58,9 @@ contract TheCompactCore is ERC6909, Deposit {
60
58
}
61
59
}
62
60
_deposit (token, amount, IdLib.toAllocator (compact.inputs[i].id), IdLib.toScope (compact.inputs[i].id), IdLib.toResetPeriod (compact.inputs[i].id), compact.sponsor);
63
- if (delegated) {
64
- registeredCompact.inputs[i].recipient = _markDelegation (registeredCompact.inputs[i].recipient, msg .sender );
65
- }
66
61
}
67
62
bytes32 digest = witness != bytes32 (0 ) ? _compactDigestWitness (compact, witness, typeString) : _compactDigest (compact);
68
63
_register (compact.sponsor, digest, compact.expires);
69
- return registeredCompact;
70
64
}
71
65
72
66
function setOperator (address operator , bool approved ) public payable override returns (bool ) {
0 commit comments