Skip to content

Commit

Permalink
fix(sdk-coin-eth): fix issue related to ethtxbuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
gianchandania committed Nov 2, 2023
1 parent 52396ed commit 286ccfd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions modules/sdk-coin-eth/src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
6 changes: 3 additions & 3 deletions modules/sdk-coin-ethw/src/ethw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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()));
}
}
2 changes: 1 addition & 1 deletion modules/sdk-coin-polygon/src/lib/transactionBuilder.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 286ccfd

Please sign in to comment.