Skip to content

Commit

Permalink
remove debug console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Z4karia committed Oct 16, 2024
1 parent 23eec74 commit bfde791
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/AcreBtcNew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,6 @@ export default class AcreBtcNew {
}

formatAcreWithdrawalData(withdrawalData: AcreWithdrawalData): AcreWithdrawalDataBuffer {
console.log("withdrawalData", withdrawalData);
console.log("dataLength", withdrawalData.data.length);
const to = Buffer.from(this.cleanHexPrefix(withdrawalData.to.toString()), "hex").slice(-20);

let withdrawalValueBuffer = Buffer.from(this.cleanHexPrefix(withdrawalData.value), "hex").slice(-32);
Expand Down Expand Up @@ -386,7 +384,6 @@ export default class AcreBtcNew {
}> {
const pathElements: number[] = pathStringToArray(path);
const withdrawalDataBuffer = this.formatAcreWithdrawalData(withdrawalData);
console.log("withdrawalDataBuffer", withdrawalDataBuffer);

const sig = await this.client.signWithdrawal(pathElements, withdrawalDataBuffer);
const buf = Buffer.from(sig, "base64");
Expand Down Expand Up @@ -415,7 +412,6 @@ export default class AcreBtcNew {
const pathElements: number[] = pathStringToArray(path);
const message = Buffer.from(messageHex, "hex");
const sig = await this.client.signERC4361Message(message, pathElements);
console.log("sig", sig);
const buf = Buffer.from(sig, "base64");

const v = buf.readUInt8() - 27 - 4;
Expand Down

0 comments on commit bfde791

Please sign in to comment.