btc-vision / opwallet

Forked from UniSat.
Other
19 stars 6 forks source link

The content I edited in the contract cannot be executed by the wallet #26

Open guiyujin opened 2 weeks ago

guiyujin commented 2 weeks ago

First, I removed the restriction code that only the deployer can mint, but other wallets do not have a mint button after importing. Second, I fixed the mint amount in the contract, but the wallet still executes according to the input amount. It seems that the contract is a decoration.

BlobMaster41 commented 1 week ago

Able to provide code examples?

guiyujin commented 1 week ago
private mint(callData: Calldata): BytesWriter {

    const response = new BytesWriter(1);
    const resp = this._mint(callData.readAddress(), u128.fromString('6000000000000000000000').toU256());

    response.writeBoolean(resp);

    return response;
}