Merged
Conversation
6 tasks
swansontec
approved these changes
Sep 8, 2025
AGENTS.md
Outdated
|
|
||
| - **TypeScript**: Strict mode enabled, target ES2015, module ES2020 | ||
| - **Imports**: Use simple-import-sort, group by external/internal/relative | ||
| - **Formatting**: Prettier via eslint-config-standard-kit, 2-space indent, semicolons |
Contributor
There was a problem hiding this comment.
"Prettier and Standard.js" might prompt better, and we don't use semicolons.
AGENTS.md
Outdated
| ## Code Style Guidelines | ||
|
|
||
| - **TypeScript**: Strict mode enabled, target ES2015, module ES2020 | ||
| - **Imports**: Use simple-import-sort, group by external/internal/relative |
Contributor
There was a problem hiding this comment.
"group by external, then internal" is more correct.
AGENTS.md
Outdated
|
|
||
| ## Build/Test/Lint Commands | ||
|
|
||
| - **Test**: `npm test` (single test: `mocha test/path/to/file.test.ts`) |
Contributor
There was a problem hiding this comment.
(single test: npm test test/path/to/file.test.ts)
src/util/swapHelpers.ts
Outdated
| for (const id of Object.keys(customFeeCacheMap)) { | ||
| if (Date.now() > customFeeCacheMap[id].timestamp + 30000) { | ||
| delete customFeeCacheMap[id] // eslint-disable-line | ||
| delete customFeeCacheMap[id]; // eslint-disable-line |
src/util/swapHelpers.ts
Outdated
Comment on lines
88
to
89
| makeTxParams.unsignedTx, | ||
| makeTxParams.metadata |
Contributor
There was a problem hiding this comment.
This seems wrong. The makeTx function takes MakeTxParams, which has a type field inside it. These two arguments shouldn't be broken out like this, but makeTxParams should be passed as-is.
| if (contractAddress === '0x0000000000000000000000000000000000000000') { | ||
| return null | ||
| } else { | ||
| const fakeToken: EdgeToken = { |
Contributor
There was a problem hiding this comment.
// Pack the contractAddress into a dummy EdgeToken:
swansontec
approved these changes
Sep 8, 2025
d3fe0b4 to
2668d08
Compare
2668d08 to
90ae4ad
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
EdgeApp/edge-currency-accountbased#975
EdgeApp/edge-currency-plugins#439
Description
none