four-flap-meme-sdk 1.2.53 → 1.2.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/utils/erc20.js +2 -2
- package/package.json +1 -1
package/dist/utils/erc20.js
CHANGED
|
@@ -205,7 +205,7 @@ export async function ensureFlapSellApproval(chain, rpcUrl, privateKey, token, o
|
|
|
205
205
|
* @param privateKeys 拥有者私钥数组(每个地址需自行签名)
|
|
206
206
|
* @returns 每个地址的授权结果(包含 owner 与交易回执等信息)
|
|
207
207
|
*/
|
|
208
|
-
export async function ensureFlapSellApprovalBatch(chain, rpcUrl, privateKeys, token, required = (
|
|
208
|
+
export async function ensureFlapSellApprovalBatch(chain, rpcUrl, privateKeys, token, required = BigInt('0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff')) {
|
|
209
209
|
const results = [];
|
|
210
210
|
for (const pk of privateKeys || []) {
|
|
211
211
|
const owner = new Wallet(pk).address;
|
|
@@ -217,7 +217,7 @@ export async function ensureFlapSellApprovalBatch(chain, rpcUrl, privateKeys, to
|
|
|
217
217
|
/**
|
|
218
218
|
* 批量检查 Flap Protocol 授权状态(默认按上限 2^256-1 判断)
|
|
219
219
|
*/
|
|
220
|
-
export async function checkFlapSellApprovalBatch(chain, rpcUrl, token, owners, required = (
|
|
220
|
+
export async function checkFlapSellApprovalBatch(chain, rpcUrl, token, owners, required = BigInt('0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff')) {
|
|
221
221
|
const proxyAddresses = {
|
|
222
222
|
BSC: ADDRESSES.BSC.FlapPortal,
|
|
223
223
|
BASE: ADDRESSES.BASE.FlapPortal,
|