Skip to content

Commit

Permalink
Merge pull request #25 from FinBook/Staking3
Browse files Browse the repository at this point in the history
Infura url fix for ledger
  • Loading branch information
yizhoucao committed May 31, 2019
2 parents 62ffe6b + bf0d737 commit f826826
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ts/common/__snapshots__/wrappers.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ exports[`Web3Wrapper 1`] = `
Array [
Array [
[Window],
"https://kovan.infura.io/v3",
"https://kovan.infura.io",
"",
false,
],
Expand Down
2 changes: 1 addition & 1 deletion src/ts/common/wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {

export const web3Wrapper = new Web3Wrapper(
window,
__KOVAN__ ? WrapperConstants.PROVIDER_INFURA_KOVAN : WrapperConstants.PROVIDER_INFURA_MAIN,
(__KOVAN__ ? WrapperConstants.PROVIDER_INFURA_KOVAN : WrapperConstants.PROVIDER_INFURA_MAIN).replace('/v3', ''),
'',
!__KOVAN__
);
Expand Down
3 changes: 3 additions & 0 deletions src/ts/components/Pages/StakingAdmin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ export default class StakingAdmin extends React.Component<IProps, IState> {
>
Contract States
</b>
<div>
<b>{account}</b>
</div>
<div>
Can Stake: <b>{contractStates.canStake.toString()}</b>
</div>
Expand Down

0 comments on commit f826826

Please sign in to comment.