Skip to content

fix: missing params broadcast fail on musig eth rec#45

Merged
mohammadalfaiyazbitgo merged 1 commit intomasterfrom
WP-5157
Jun 27, 2025
Merged

fix: missing params broadcast fail on musig eth rec#45
mohammadalfaiyazbitgo merged 1 commit intomasterfrom
WP-5157

Conversation

@mtexeira-simtlix
Copy link
Copy Markdown
Contributor

Ticket: WP-5157
Description:
We managed to generate a txHex on a previous PR but when we tried to broadcast it keeps failing.
We were missing some essential parameters that doesn't blocks you from generating the hex but made the tx unbroadcastable and unindexable.
This PR fixes that issue.

): ReplayProtectionOptions {
return (
replayProtectionOptions ?? {
chain: 17000, // 1 if mainnet, 17000 if testnet
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.

Copy link
Copy Markdown
Contributor

@mohammadalfaiyazbitgo mohammadalfaiyazbitgo left a comment

Choose a reason for hiding this comment

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

please follow up on the comments

Comment on lines +63 to +66
replayProtectionOptions ?? {
chain: 17000, // 1 if mainnet, 17000 if testnet
hardfork: 'london',
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

use bitgo.env to get the environment return the appropriate options

Comment on lines +70 to +77
export function getDefaultMusigEthGasParams() {
return {
gasPrice: 20000000000,
gasLimit: 200000,
maxFeePerGas: 20000000000,
maxPriorityFeePerGas: 10000000000,
};
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why is this a function, could it not be const ?

txPrebuild: { ...unsignedSweepPrebuildTx } as unknown as SignFinalOptions,
pubs,
keyList: walletKeys,
recipients: unsignedSweepPrebuildTx.recipients ?? [],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should actually error out if there are no recipients

@mohammadalfaiyazbitgo mohammadalfaiyazbitgo merged commit 0d70111 into master Jun 27, 2025
3 checks passed
@mohammadalfaiyazbitgo mohammadalfaiyazbitgo deleted the WP-5157 branch June 27, 2025 13:25
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