Skip to content

Commit 624af5f

Browse files
TinyChain --> eth.mjs tiny fix.
1 parent 489b9c0 commit 624af5f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/TinyChain/Secp256k1/Eth.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ class TinyEthSecp256k1 extends TinySecp256k1 {
126126
* @param {Buffer} [pubKey=this.getPublicKeyBuffer(false).subarray(1)] - The pubKey buffer (remove byte 0x04).
127127
* @returns {string}
128128
*/
129-
getAddress(pubKey = this.getPublicKeyBuffer(false).subarray(1)) {
130-
return this.#getAddress(pubKey);
129+
getAddress(pubKey = this.getPublicKeyBuffer(false)) {
130+
return this.#getAddress(pubKey.subarray(1));
131131
}
132132

133133
/**

0 commit comments

Comments
 (0)