Skip to content

Commit

Permalink
refactor(core): rename param
Browse files Browse the repository at this point in the history
  • Loading branch information
capt-nemo429 committed May 7, 2023
1 parent 699cc4a commit f4fb544
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/models/ergoAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ function _getErgoTreeType(ergoTree: Uint8Array): AddressType {
*
* `0x02` = compressed, positive Y coordinate.
* `0x03` = compressed, negative Y coordinate.
* @param ecBytes ECPoint bytes
* @param pointBytes ECPoint bytes
*/
function _validateCompressedEcPoint(ecBytes: Uint8Array) {
if (isEmpty(ecBytes) || ecBytes.length !== 33) {
function _validateCompressedEcPoint(pointBytes: Uint8Array) {
if (isEmpty(pointBytes) || pointBytes.length !== 33) {
return false;
}

return ecBytes[0] === 0x02 || ecBytes[0] === 0x03;
return pointBytes[0] === 0x02 || pointBytes[0] === 0x03;
}

/**
Expand Down

0 comments on commit f4fb544

Please sign in to comment.