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
LIVE-12087 - Fix llm prepare sign tx #6759
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ 5 Ignored Deployments
|
c67871c
to
c57dae3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
f04da38
to
4e1c5eb
Compare
4e1c5eb
to
798b8cc
Compare
@@ -21,23 +21,15 @@ describe("prepareSignTransaction", () => { | |||
// Given | |||
const parentAccount = createAccount("12"); | |||
const childAccount = createTokenAccount("22", "js:2:ethereum:0x012:"); | |||
const expectedResult: EvmTransaction = { | |||
const expectedResult: Partial<EvmTransaction> = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure that testing half of the expected result is enough.
The function is expected to return a full Transaction
object, not a Partial one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what the prepareSignTransaction returns
): TransactionCommon { | ||
const bridge = getAccountBridge(account, parentAccount); | ||
const t = bridge.createTransaction(account); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it okay to not go through the createTransaction
anymore ?
I understand you made it the same as LLD but I think that some special defaults could be setup in this function IIRC
@@ -21,23 +21,15 @@ describe("prepareSignTransaction", () => { | |||
// Given | |||
const parentAccount = createAccount("12"); | |||
const childAccount = createTokenAccount("22", "js:2:ethereum:0x012:"); | |||
const expectedResult: EvmTransaction = { | |||
const expectedResult: Partial<EvmTransaction> = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels a bit wrong to expect a partial transaction now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what the prepareSignTransaction returns
Superseded by #6814 |
β Checklist
npx changeset
was attached.Transactions creation with Wallet API on LLM
π Description & β Context
Figment is having issues with
eth_sendTransaction
on LLM (full details on the issue in this thread) and while investigating we figured the issue was coming from the way we are setting the customGasLimit here.The problem doesn't appear on LLD, and as you can see, the custom prepareSignTransaction function we were doing in LLM doesn't exist on LLD.
The change introduced by this PR sets the behavior of LLM on par with LLD in regard to tx preparation in Wallet API.
π§ Checklist for the PR Reviewers