Skip to content

Commit

Permalink
Merge pull request #673 from lukso-network/refactor/lsp6-event
Browse files Browse the repository at this point in the history
refactor!: change event name from VerifiedCalled to PermissionsVerified in LSP6
  • Loading branch information
CJ42 authored Aug 11, 2023
2 parents b6d3709 + eb7dacc commit 614cec6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contracts/LSP6KeyManager/ILSP6KeyManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface ILSP6KeyManager is
* @param value The amount of native token to be transferred in the calldata payload.
* @param selector The bytes4 function of the function that was executed on the linked {target}
*/
event VerifiedCall(
event PermissionsVerified(
address indexed signer,
uint256 indexed value,
bytes4 indexed selector
Expand Down
6 changes: 3 additions & 3 deletions contracts/LSP6KeyManager/LSP6KeyManagerCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ abstract contract LSP6KeyManagerCore is
bool isReentrantCall = _nonReentrantBefore(isSetData, caller);

_verifyPermissions(caller, msgValue, data);
emit VerifiedCall(caller, msgValue, bytes4(data));
emit PermissionsVerified(caller, msgValue, bytes4(data));

// if it's a setData call, do not invoke the `lsp20VerifyCallResult(..)` function
return
Expand Down Expand Up @@ -363,7 +363,7 @@ abstract contract LSP6KeyManagerCore is
bool isReentrantCall = _nonReentrantBefore(isSetData, msg.sender);

_verifyPermissions(msg.sender, msgValue, payload);
emit VerifiedCall(msg.sender, msgValue, bytes4(payload));
emit PermissionsVerified(msg.sender, msgValue, bytes4(payload));

bytes memory result = _executePayload(msgValue, payload);

Expand Down Expand Up @@ -429,7 +429,7 @@ abstract contract LSP6KeyManagerCore is
}

_verifyPermissions(signer, msgValue, payload);
emit VerifiedCall(signer, msgValue, bytes4(payload));
emit PermissionsVerified(signer, msgValue, bytes4(payload));

bytes memory result = _executePayload(msgValue, payload);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export const shouldBehaveLikePermissionCall = (buildContext: () => Promise<LSP6T
await expect(tx).to.not.be.reverted;

expect(tx)
.to.emit(context.keyManager, 'VerifiedCall')
.to.emit(context.keyManager, 'PermissionsVerified')
.withArgs(addressCanMakeCallWithAllowedCalls.address, 0, '0x00000000');
});
});
Expand Down
2 changes: 1 addition & 1 deletion tests/LSP6KeyManager/Relay/ExecuteRelayCall.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export const shouldBehaveLikeExecuteRelayCall = (
);

expect(tx)
.to.emit(context.keyManager, 'VerifiedCall')
.to.emit(context.keyManager, 'PermissionsVerified')
.withArgs(
context.accounts[1].address,
signedMessageParams.msgValue,
Expand Down

0 comments on commit 614cec6

Please sign in to comment.