Skip to content

Commit

Permalink
Merge pull request #4867 from BitGo/COIN-1404-fix-polygon
Browse files Browse the repository at this point in the history
chore(sdk-coin-polygon): use nonpacked encoding for v4 wallet
  • Loading branch information
mullapudipruthvik authored Aug 30, 2024
2 parents 696a3e7 + f6e9536 commit 8ab5471
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/abstract-eth/src/lib/transactionBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export abstract class TransactionBuilder extends BaseTransactionBuilder {

// Wallet initialization transaction parameters
private _walletOwnerAddresses: string[];
private _walletVersion: number;
protected _walletVersion: number;

// flush tokens parameters
private _forwarderAddress: string;
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-polygon/src/lib/transactionBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ export class TransactionBuilder extends EthLikeTransactionBuilder {
public coinUsesNonPackedEncodingForTxData(): boolean {
// This is because the contracts which have been deployed for
// polygon amoy testnet use non-packed encoding for tx data
return this._common.chainIdBN().toString() === '80002';
return this._common.chainIdBN().toString() === '80002' || this._walletVersion === 4;
}
}

0 comments on commit 8ab5471

Please sign in to comment.