Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
remove returned boolean on authenticate message method (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelm41 committed Mar 10, 2023
1 parent 8b7b9c0 commit 7e1ceaf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contracts/v0.8/AccountAPI.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ library AccountAPI {
/// @dev Errors if the authentication is invalid.
/// @param target The account actor id you want to interact with
/// @param params message to be authenticated
function authenticateMessage(CommonTypes.FilActorId target, AccountTypes.AuthenticateMessageParams memory params) internal returns (bool) {
function authenticateMessage(CommonTypes.FilActorId target, AccountTypes.AuthenticateMessageParams memory params) internal {
bytes memory raw_request = params.serializeAuthenticateMessageParams();

bytes memory data = Actor.callNonSingletonByID(target, AccountTypes.AuthenticateMessageMethodNum, Misc.CBOR_CODEC, raw_request, 0, true);

return data.deserializeBool();
require(data.deserializeBool());
}
}

0 comments on commit 7e1ceaf

Please sign in to comment.