Skip to content

Commit

Permalink
feat: Rename function to singular
Browse files Browse the repository at this point in the history
  • Loading branch information
msarcev committed Apr 25, 2024
1 parent de43507 commit 004ce57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/helpers/nova/preExpandedConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function getInputsPreExpandedConfig(inputs: IInput[], unlocks: Unlock[],
)?.bech32;

// special case for account unlock
const referencedAccountAddress = getReferencedAddresses(inputs, unlocks[idx], bech32Hrp);
const referencedAccountAddress = getReferencedAddress(inputs, unlocks[idx], bech32Hrp);

return unlockAddress === unlockSignatureAddress || unlockAddress === referencedAccountAddress;
}
Expand Down Expand Up @@ -95,7 +95,7 @@ export function getInputsPreExpandedConfig(inputs: IInput[], unlocks: Unlock[],
return inputsPreExpandedConfig;
}

function getReferencedAddresses(inputs: IInput[], unlock: Unlock, bech32Hrp: string): string {
function getReferencedAddress(inputs: IInput[], unlock: Unlock, bech32Hrp: string): string {
let referencedAccountAddress = "";
if (unlock.type === UnlockType.Account) {
const referencedAccountInput = inputs[(unlock as AccountUnlock).reference];
Expand Down

0 comments on commit 004ce57

Please sign in to comment.