CATProtocol / cat-token-box

A monorepo for packages implementing CAT protocol
https://catprotocol.org
MIT License
157 stars 100 forks source link

【必看】踩坑日记 #77

Open lly835 opened 5 days ago

lly835 commented 5 days ago

开个帖子,记录踩坑和解决方案!

1. 如何避免mint 0.01 CAT

方案:直接改build后的mint的代码,路径 packages/cli/dist/commands/mint/mint.command.js

if (amount !== 500n) {
       console.error(amount);
       return;
}
const mintTxIdOrErr = await (0, ft_open_minter_1.openMint)(this.configService, this.walletService, this.spendService, feeRate, feeUtxos, token, 2, minter, amount);
SexyERIC0723 commented 5 days ago
image

同步了一天没打几个出现这问题

MarkSSH commented 5 days ago

image 同步了一天没打几个出现这问题

+1,现在没一个成的,全是这个问题

gabr1234iel commented 5 days ago

stash 了后跑了git pull, 现在出这个: {"result":null,"error":{"code":-26,"message":"non-mandatory-script-verify-flag (Script failed an OP_EQUALVERIFY operation)"},"id":"cat-cli"}

SexyERIC0723 commented 5 days ago

开个帖子,记录踩坑和解决方案!

1. 如何避免mint 0.01 CAT

方案:改mint的代码

if (amount !== 500n) {
       console.error(amount);
       return;
}
const mintTxIdOrErr = await (0, ft_open_minter_1.openMint)(this.configService, this.walletService, this.spendService, feeRate, feeUtxos, token, 2, minter, amount);

哥这个要添加在哪里呀

Rock-Lee-520 commented 5 days ago

代码路径在哪里?

0JustinTang0 commented 5 days ago

能在tracker侧修改吗?

ThreeAndTwo commented 5 days ago

代码路径在哪里?

cat-token-box/packages/cli/src/commands/mint/mint.command.ts

albertzzzzzzzzzzzz commented 5 days ago

添加在文件那个位置?

lly835 commented 5 days ago

开个帖子,记录踩坑和解决方案!

1. 如何避免mint 0.01 CAT

方案:改mint的代码

if (amount !== 500n) {
       console.error(amount);
       return;
}
const mintTxIdOrErr = await (0, ft_open_minter_1.openMint)(this.configService, this.walletService, this.spendService, feeRate, feeUtxos, token, 2, minter, amount);

哥这个要添加在哪里呀 packages/cli/dist/commands/mint/mint.command.js

hardwin1014 commented 5 days ago

好慢啊,有解决办法吗