Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add sendTx feat to UserOp template #67

Merged
merged 3 commits into from
Oct 11, 2023
Merged

Conversation

q20274982
Copy link
Member

Summary

  • add Send Transaction template to EVM/Send UserOp

The parts will be implemented in later Pull Requests

Related Links

Asana: https://app.asana.com/0/1201812548509877/1205200072749122/f

Mockup:

Checklist

  • Pasted Asana or Mockup link.
  • Tagged labels.

Prerequisite/Related Pull Requests

Screenshot/Gif

@netlify
Copy link

netlify bot commented Sep 18, 2023

Deploy Preview for blocto-sdk-toolkit-testnet failed.

Name Link
🔨 Latest commit bcf36f2
🔍 Latest deploy log https://app.netlify.com/sites/blocto-sdk-toolkit-testnet/deploys/651a7e3b545ab80008050e45

Comment on lines 257 to 262
setRequestObject={([params] = []) =>
setRequestObject({
method: "eth_sendTransaction",
params,
})
}
Copy link
Member

@mordochi mordochi Sep 27, 2023

Choose a reason for hiding this comment

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

Is there any concern that we update the method like this?

Cuz we can still keep it setRequestObject={setRequestObject} and setTransactionToCallData should be

const setTransactionToCallData = useCallback(
    ({ params: [tx] = [] }) => {
        const { to, value = "0x", data = "0x" } = tx;
        ...
    },
    [otherParam, setRequestObject]
);

This way we don't have to update src/components/EvmEditor.tsx and src/components/EvmEditors/EvmSendEditor.tsx

@q20274982 q20274982 merged commit 3ff71e8 into develop Oct 11, 2023
0 of 3 checks passed
@q20274982 q20274982 deleted the feat/userOp-add-tx-form branch October 11, 2023 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants