Skip to content

Commit

Permalink
Add missing autofill params in LedgerContext
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibautBremand committed Sep 5, 2023
1 parent 0924f53 commit e6a15fd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/extension/src/contexts/LedgerContext/LedgerContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ const LedgerProvider: FC = ({ children }) => {
...(payload.URI && { URI: payload.URI }), // Must be hex encoded
...(payload.flags && { Flags: payload.flags })
},
{ wallet: wallet.wallet }
{ wallet: wallet.wallet, autofill: true }
);

if (!tx.result.hash) {
Expand Down Expand Up @@ -442,7 +442,7 @@ const LedgerProvider: FC = ({ children }) => {
...(payload.destination && { Destination: payload.destination }),
...(payload.flags && { Flags: payload.flags })
},
{ wallet: wallet.wallet }
{ wallet: wallet.wallet, autofill: true }
);

if (!tx.result.hash) {
Expand Down Expand Up @@ -486,7 +486,7 @@ const LedgerProvider: FC = ({ children }) => {
) as NFTokenCancelOffer),
NFTokenOffers: payload.NFTokenOffers
},
{ wallet: wallet.wallet }
{ wallet: wallet.wallet, autofill: true }
);

if (!tx.result.hash) {
Expand Down Expand Up @@ -532,7 +532,7 @@ const LedgerProvider: FC = ({ children }) => {
...(payload.NFTokenBuyOffer && { NFTokenBuyOffer: payload.NFTokenBuyOffer }),
...(payload.NFTokenBrokerFee && { NFTokenBrokerFee: payload.NFTokenBrokerFee })
},
{ wallet: wallet.wallet }
{ wallet: wallet.wallet, autofill: true }
);

if (!tx.result.hash) {
Expand Down Expand Up @@ -573,7 +573,7 @@ const LedgerProvider: FC = ({ children }) => {
NFTokenID: payload.NFTokenID,
...(payload.owner && { Owner: payload.owner })
},
{ wallet: wallet.wallet }
{ wallet: wallet.wallet, autofill: true }
);

if (!tx.result.hash) {
Expand Down Expand Up @@ -621,7 +621,7 @@ const LedgerProvider: FC = ({ children }) => {
...(payload.transferRate && { TransferRate: payload.transferRate }),
...(payload.tickSize && { TickSize: payload.tickSize })
},
{ wallet: wallet.wallet }
{ wallet: wallet.wallet, autofill: true }
);

if (!tx.result.hash) {
Expand Down Expand Up @@ -705,7 +705,7 @@ const LedgerProvider: FC = ({ children }) => {
TakerGets: payload.takerGets,
TakerPays: payload.takerPays
},
{ wallet: wallet.wallet }
{ wallet: wallet.wallet, autofill: true }
);

if (!tx.result.hash) {
Expand Down Expand Up @@ -745,7 +745,7 @@ const LedgerProvider: FC = ({ children }) => {
...(buildBaseTransaction(payload, wallet, 'OfferCancel') as OfferCancel),
OfferSequence: payload.offerSequence
},
{ wallet: wallet.wallet }
{ wallet: wallet.wallet, autofill: true }
);

if (!tx.result.hash) {
Expand Down

0 comments on commit e6a15fd

Please sign in to comment.