Skip to content

Commit

Permalink
Merge pull request #422 from cmgustavo/bug/use-new-chain-bwc-01
Browse files Browse the repository at this point in the history
Fix: update chain name for new BWC: ETHERC20
  • Loading branch information
JohnathanWhite authored Sep 27, 2022
2 parents d0b5a3d + 8f406fc commit 89a879b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ const ChangellyCheckout: React.FC = () => {
for (const output of txp.outputs) {
if (!output.data) {
output.data = BWC.getCore()
.Transactions.get({chain: 'ERC20'})
.Transactions.get({chain: 'ETHERC20'})
.encodeData({
recipients: [
{address: output.toAddress, amount: output.amount},
Expand Down
4 changes: 2 additions & 2 deletions src/store/wallet/effects/send/send.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
CustomTransactionData,
Key,
ProposalErrorHandlerProps,
Rates,
Recipient,
TransactionOptions,
SendMaxInfo,
Expand Down Expand Up @@ -65,6 +64,7 @@ import {
TO_HANDLE_ERRORS,
} from '../../../../constants/BiometricError';
import {Platform} from 'react-native';
import {Rates} from '../../../rate/rate.models';

export const createProposalAndBuildTxDetails =
(
Expand Down Expand Up @@ -738,7 +738,7 @@ const buildTransactionProposal =
if (!output.data) {
output.data = BwcProvider.getInstance()
.getCore()
.Transactions.get({chain: 'ERC20'})
.Transactions.get({chain: 'ETHERC20'})
.encodeData({
recipients: [
{address: output.toAddress, amount: output.amount},
Expand Down

0 comments on commit 89a879b

Please sign in to comment.