Skip to content

Commit c8facd5

Browse files
authored
Fix okx-evm action script (#2225)
* feat: add logging for JSON response and handle empty erc20Assets * refactor: remove unnecessary logging from main function
1 parent 29d8602 commit c8facd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_script/evm_okx/evm_okx.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async function main() {
8585

8686
const jsonResponse = await response.json();
8787

88-
const erc20Assets = jsonResponse.data;
88+
const erc20Assets = jsonResponse.data || [];
8989

9090
const currentAssetContractAddresses = currentAssets.map((asset) => {
9191
return asset.contract.toLowerCase();

0 commit comments

Comments
 (0)