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/update injective to lb #92

Merged

Conversation

vic-en
Copy link
Collaborator

@vic-en vic-en commented Apr 25, 2023

Before submitting this PR, please make sure:

  • Your code builds clean without any errors or warnings
  • You are using approved title ("feat/", "fix/", "docs/", "refactor/")

A description of the changes proposed in the pull request:
This pr updates the Injective deps and also updates the deprecated codes.

Tests performed by the developer:

  • End-to-end testing with client

Tips for QA testing:

Copy link

@nicolasbaum nicolasbaum left a comment

Choose a reason for hiding this comment

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

Added the following changes to make a local version work

@@ -224,22 +224,17 @@ export class MsgBroadcasterLocal {
accountDetails: AccountDetails,
sequence: number
): Promise<{ data: any }> {
const { signBytes, txRaw } = createTransaction({
const { txRaw } = createTransaction({

Choose a reason for hiding this comment

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

Changed it to:

const { signBytes, txRaw } = createTransaction({

memo: '',
fee: DEFAULT_STD_FEE,
message: (tx.msgs as Msgs[]).map((m) => m.toDirectSign()),
message: tx.msgs as Msgs[],
timeoutHeight: timeoutHeight.toNumber(),
pubKey: this._privateKey.toPublicKey().toBase64(),
sequence: sequence,
accountNumber: accountDetails.accountNumber,
chainId: this.chainId,
});

Choose a reason for hiding this comment

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

    /** Sign transaction */
    const signature = await this._privateKey.sign(Buffer.from(signBytes));

    /** Append Signatures */
    txRaw.signatures = [signature];

Copy link
Contributor

@cardosofede cardosofede left a comment

Choose a reason for hiding this comment

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

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants