We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 489b9c0 commit 624af5fCopy full SHA for 624af5f
1 file changed
src/TinyChain/Secp256k1/Eth.mjs
@@ -126,8 +126,8 @@ class TinyEthSecp256k1 extends TinySecp256k1 {
126
* @param {Buffer} [pubKey=this.getPublicKeyBuffer(false).subarray(1)] - The pubKey buffer (remove byte 0x04).
127
* @returns {string}
128
*/
129
- getAddress(pubKey = this.getPublicKeyBuffer(false).subarray(1)) {
130
- return this.#getAddress(pubKey);
+ getAddress(pubKey = this.getPublicKeyBuffer(false)) {
+ return this.#getAddress(pubKey.subarray(1));
131
}
132
133
/**
0 commit comments