CATProtocol / cat-token-box

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

我给了3400的gas你就帮我mint 0.01 CAT? #76

Open lly835 opened 5 days ago

lly835 commented 5 days ago
image
gaohongxiang commented 5 days ago
image

你这个情况是存在的,运气不好。

image

兄弟有没有遇到这个问题?

lly835 commented 5 days ago

不是运气不好,当90%的人开始打4.99, 0.01的概率就大了

SexyERIC0723 commented 5 days ago

image 你这个情况是存在的,运气不好。 image 兄弟有没有遇到这个问题?

我也这样是怎么回事啊

SexyERIC0723 commented 5 days ago
image

难崩啊兄弟们0.01 世上还是坏人多

666-eth commented 5 days ago

最后怎么解决呢

lly835 commented 5 days ago

自己改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);
crackeryo commented 5 days ago

compile 的时候出现 error TS2304: Cannot find name 'ft_open_minter_1'.咋办

arenouf14 commented 5 days ago

compile 的时候出现 error TS2304: Cannot find name 'ft_open_minter_1'.咋办

@crackeryo you have to change the code in the dist folder directly I think so you dont re-compile (if I understand correctly the proposal and after looking for the piece of code with ft_open_minter_1

crackeryo commented 5 days ago

compile 的时候出现 error TS2304: Cannot find name 'ft_open_minter_1'.咋办

@crackeryo you have to change the code in the dist folder directly I think so you dont re-compile (if I understand correctly the proposal and after looking for the piece of code with ft_open_minter_1

got it! just figured it out. Changing uncompiled the code and re-compiling works as well.

does any oneany idea how to go around with the issue of {"result":null,"error":{"code":-26,"message":"non-mandatory-script-verify-flag (Script failed an OP_EQUALVERIFY operation)"},"id":"cat-cli"} ?

crackeryo commented 5 days ago

compile 的时候出现 error TS2304: Cannot find name 'ft_open_minter_1'.咋办

@crackeryo you have to change the code in the dist folder directly I think so you dont re-compile (if I understand correctly the proposal and after looking for the piece of code with ft_open_minter_1

have anyone tried changing the amount directly if it doesn't match, what will happen?有人试过直接改数量吗,会发生什么