-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Feat/update injective to lb #92
Conversation
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.
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({ |
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.
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, | ||
}); | ||
|
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.
/** Sign transaction */
const signature = await this._privateKey.sign(Buffer.from(signBytes));
/** Append Signatures */
txRaw.signatures = [signature];
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!
Before submitting this PR, please make sure:
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:
Tips for QA testing: