diff --git a/modules/bitgo/test/v2/unit/wallet.ts b/modules/bitgo/test/v2/unit/wallet.ts index 22dad61098..e348c23166 100644 --- a/modules/bitgo/test/v2/unit/wallet.ts +++ b/modules/bitgo/test/v2/unit/wallet.ts @@ -3158,6 +3158,28 @@ describe('V2 Wallet:', function () { intent.intentType.should.equal('acceleration'); }); + it('populate intent should return valid coredao acceleration intent', async function () { + const mpcUtils = new ECDSAUtils.EcdsaUtils(bitgo, bitgo.coin('coredao')); + + const feeOptions = { + maxFeePerGas: 3000000000, + maxPriorityFeePerGas: 2000000000, + }; + const lowFeeTxid = '0x6ea07f9420f4676be6478ab1660eb92444a7c663e0e24bece929f715e882e0cf'; + + const intent = mpcUtils.populateIntent(bitgo.coin('coredao'), { + reqId, + intentType: 'acceleration', + lowFeeTxid, + feeOptions, + }); + + intent.should.have.property('recipients', undefined); + intent.feeOptions!.should.deepEqual(feeOptions); + intent.txid!.should.equal(lowFeeTxid); + intent.intentType.should.equal('acceleration'); + }); + it('populate intent should return valid eth acceleration intent for receive address', async function () { const mpcUtils = new ECDSAUtils.EcdsaUtils(bitgo, bitgo.coin('hteth')); diff --git a/modules/sdk-core/src/bitgo/utils/mpcUtils.ts b/modules/sdk-core/src/bitgo/utils/mpcUtils.ts index 0b4932c1e8..3b4c7c908d 100644 --- a/modules/sdk-core/src/bitgo/utils/mpcUtils.ts +++ b/modules/sdk-core/src/bitgo/utils/mpcUtils.ts @@ -191,7 +191,7 @@ export abstract class MpcUtils { isTestTransaction: params.isTestTransaction, }; - if (baseCoin.getFamily() === 'eth' || baseCoin.getFamily() === 'polygon' || baseCoin.getFamily() === 'bsc') { + if (['eth', 'polygon', 'bsc', 'coredao'].includes(baseCoin.getFamily())) { switch (params.intentType) { case 'payment': case 'transferToken':