babylonlabs-io / btc-staking-ts

Other
1 stars 4 forks source link

feature: Defensive copying, eslint errors #10

Closed gbarkhatov closed 2 months ago

gbarkhatov commented 2 months ago

This PR:

  1. Applies defensive copying when we use .sort
  2. Changeslet result to const result since these variables are not changed or reassigned
  3. Disables eslint rules for 2 lines where we do not deal with errors eslint-disable-next-line no-empty

Closes #4

jrwbabylonlab commented 2 months ago

u can bump a canary version if u wanna test it out on simple-staking

jrwbabylonlab commented 2 months ago

@gbarkhatov feel free to merge and close the issue once this PR is ready