Skip to content

Various request decoding fixes#1371

Merged
mholtzman merged 4 commits intodevelopfrom
request-fixes
Jan 23, 2023
Merged

Various request decoding fixes#1371
mholtzman merged 4 commits intodevelopfrom
request-fixes

Conversation

@Jamchello
Copy link
Copy Markdown
Contributor

No description provided.

@Jamchello Jamchello changed the title address isssues - first pass Various request decoding fixes Jan 23, 2023
@Jamchello Jamchello requested a review from mholtzman January 23, 2023 14:24
const renderActionOverview = (action, index) => {
const { id = '', data } = action
const key = id + index
const [, actionType] = id.split(':')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the idea here was to separate out the action class and action type so that we can have components that handle all the actions for one class, ie erc20 stuff. this pattern works for now but lets at least keep the concept of the action class so that as this grows we can be flexible

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actionClass is still there in the id string the same as before? It's just not used atm so I haven't assigned the variable there.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah fair enough. can we just keep the variable there? I think in general that gives visibility in the codebase as opposed to the empty comma syntax. otherwise this all looks good


function renderRecognizedAction(req) {
const { recognizedActions: actions = [] } = req
const GenericOverview = () => (
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh maybe rename this component to something about a contract as well

@mholtzman mholtzman merged commit efe8818 into develop Jan 23, 2023
@mholtzman mholtzman deleted the request-fixes branch January 23, 2023 17:36
wakamex pushed a commit to wakamex/framed that referenced this pull request Mar 2, 2026
* address isssues - first pass

* destructure in function params

* fix decline bug, clean up components

* add missing param

Co-authored-by: Matt Holtzman <matt.holtzman@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants