Skip to content

Commit 5f33112

Browse files
committed
update
1 parent f50b48a commit 5f33112

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

cex/js-example/index.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,15 @@ async function sponsorSetUpPolicyRules() {
107107
const wallet = new ethers.Wallet(hotwalletPrivateKey)
108108
// sponsor the tx that interact with the stable coin ERC20 contract
109109
try {
110-
await client.emptyWhitelist({
111-
policyUuid: policyID,
112-
whitelistType: "FromAccountWhitelist",
113-
});
114-
await client.emptyWhitelist({
115-
policyUuid: policyID,
116-
whitelistType: "ToAccountWhitelist",
117-
});
110+
// You can empty the policy rules before re-try.
111+
// await client.emptyWhitelist({
112+
// policyUuid: policyID,
113+
// whitelistType: "FromAccountWhitelist",
114+
// });
115+
//await client.emptyWhitelist({
116+
// policyUuid: policyID,
117+
// whitelistType: "ToAccountWhitelist",
118+
// });
118119
// sponsor the tx that interact with the stable coin ERC20 contract
119120
const res1 = await client.addToWhitelist({
120121
policyUuid: policyID,

0 commit comments

Comments
 (0)