diff --git a/modules/sdk-coin-eth/src/lib/index.ts b/modules/sdk-coin-eth/src/lib/index.ts index b04a8fe927..cc9125d691 100644 --- a/modules/sdk-coin-eth/src/lib/index.ts +++ b/modules/sdk-coin-eth/src/lib/index.ts @@ -1,8 +1,9 @@ -// for Backwords Compatibility +// for Backwards Compatibility export * from '@bitgo/abstract-eth'; -// exporting the EthTransactionBuilder as it is needed in Ethw class -export { TransactionBuilder as EthTransactionBuilder } from './transactionBuilder'; +// exporting Ethereum TransactionBuilder and TransferBuilder +export { TransactionBuilder } from './transactionBuilder'; +export { TransferBuilder } from './transferBuilder'; // for Backwards Compatibility import { Interface, Utils } from '@bitgo/abstract-eth'; diff --git a/modules/sdk-coin-ethw/src/ethw.ts b/modules/sdk-coin-ethw/src/ethw.ts index 3ea8a4c360..4f513ccc00 100644 --- a/modules/sdk-coin-ethw/src/ethw.ts +++ b/modules/sdk-coin-ethw/src/ethw.ts @@ -15,7 +15,7 @@ import { VerifyTransactionOptions, } from '@bitgo/sdk-core'; import { BaseCoin as StaticsBaseCoin, coins } from '@bitgo/statics'; -import { Eth, optionalDeps, EthTransactionBuilder } from '@bitgo/sdk-coin-eth'; +import { Eth, optionalDeps, TransactionBuilder } from '@bitgo/sdk-coin-eth'; import { ExplainTransactionOptions } from '@bitgo/abstract-eth'; type FullNodeResponseBody = { @@ -170,7 +170,7 @@ export class Ethw extends Eth { * Create a new transaction builder for the current chain * @return a new transaction builder */ - protected getTransactionBuilder(): EthTransactionBuilder { - return new EthTransactionBuilder(coins.get(this.getChain())); + protected getTransactionBuilder(): TransactionBuilder { + return new TransactionBuilder(coins.get(this.getChain())); } } diff --git a/modules/sdk-coin-polygon/src/lib/transactionBuilder.ts b/modules/sdk-coin-polygon/src/lib/transactionBuilder.ts index a07395839f..98e4db88d9 100644 --- a/modules/sdk-coin-polygon/src/lib/transactionBuilder.ts +++ b/modules/sdk-coin-polygon/src/lib/transactionBuilder.ts @@ -1,4 +1,4 @@ -import { EthTransactionBuilder } from '@bitgo/sdk-coin-eth'; +import { TransactionBuilder as EthTransactionBuilder } from '@bitgo/sdk-coin-eth'; import { BuildTransactionError, TransactionType } from '@bitgo/sdk-core'; import { BaseCoin as CoinConfig } from '@bitgo/statics'; import EthereumAbi from 'ethereumjs-abi';