Skip to content

Commit e27bdac

Browse files
authored
Merge pull request #7470 from BitGo/derek/SC-3812-support-message-signing-for-bsc-and-polygon
feat(statics): support message signing for bsc and polygon
2 parents 22371c8 + 122b45d commit e27bdac

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

modules/account-lib/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ const coinMessageBuilderFactoryMap = {
337337
topeth: Eth.MessageBuilderFactory,
338338
baseeth: Eth.MessageBuilderFactory,
339339
tbaseeth: Eth.MessageBuilderFactory,
340+
polygon: Eth.MessageBuilderFactory,
341+
tpolygon: Eth.MessageBuilderFactory,
340342
};
341343

342344
coins

modules/sdk-coin-bsc/src/bsc.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ export class Bsc extends AbstractEthLikeNewCoins {
3535
return true;
3636
}
3737

38+
/** @inheritDoc */
39+
supportsSigningTypedData(): boolean {
40+
return true;
41+
}
42+
3843
/** inherited doc */
3944
getDefaultMultisigType(): MultisigType {
4045
return multisigTypes.tss;

modules/statics/src/coinFeatures.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ export const POLYGON_FEATURES = [
225225
CoinFeature.MPCV2,
226226
CoinFeature.STUCK_TRANSACTION_MANAGEMENT_TSS,
227227
CoinFeature.BULK_TRANSACTION,
228+
CoinFeature.SHARED_EVM_MESSAGE_SIGNING,
228229
CoinFeature.ERC20_BULK_TRANSACTION,
229230
];
230231

0 commit comments

Comments
 (0)