Skip to content

Commit

Permalink
Added optimizations to Service variable calls
Browse files Browse the repository at this point in the history
  • Loading branch information
quent043 committed Dec 2, 2023
1 parent 797bd99 commit ba0c363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/TalentLayerService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ contract TalentLayerService is Initializable, ERC2771RecipientUpgradeable, UUPSU
bytes calldata _signature,
uint256 _referrerId
) public payable onlyOwnerOrDelegate(_profileId) {
Service storage service = services[_serviceId];
Service memory service = services[_serviceId];
_validateProposal(_profileId, _serviceId, _rateAmount, _platformId, _dataUri, _signature, _referrerId);

proposals[_serviceId][_profileId] = Proposal({
Expand Down Expand Up @@ -624,7 +624,7 @@ contract TalentLayerService is Initializable, ERC2771RecipientUpgradeable, UUPSU
uint256 proposalPostingFee = talentLayerPlatformIdContract.getProposalPostingFee(_platformId);
require(msg.value == proposalPostingFee, "Non-matching funds");

Service storage service = services[_serviceId];
Service memory service = services[_serviceId];
require(
_rateAmount + service.referralAmount >= allowedTokenList[service.rateToken].minimumTransactionAmount,
"Amount too low"
Expand Down

0 comments on commit ba0c363

Please sign in to comment.