Skip to content

Commit

Permalink
Final release enhancements and minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
comountainclimber committed Aug 6, 2021
1 parent dc76839 commit d2037ff
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 8 deletions.
1 change: 1 addition & 0 deletions app/actions/balancesActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ async function getBalances({ net, address, isRetry = false, chain }: Props) {
tokens: [],
soundEnabled: true,
}

const network = findNetworkByDeprecatedLabel(net)

let endpoint = await getNode(net, isRetry)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const ReleaseNotesModal = ({ hideModal, theme }: Props) => (
<br />
<br />
{/* eslint-disable-next-line */}
<li>Support for N3 main and test nets 🎉🎉</li>
<li>Support for Neo (N3) MainNet and TestNet 🎉🎉</li>
<li>Under the hood dependency updates</li>
<li>Performance enhancements</li>
<br />
Expand Down
4 changes: 2 additions & 2 deletions app/containers/App/Sidebar/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const Sidebar = ({
</div>
</NavLink>

{chain === 'neo2' && (
{/* {chain === 'neo2' && (
<NavLink
id="mobile"
to={ROUTES.MOBILE}
Expand All @@ -152,7 +152,7 @@ const Sidebar = ({
<MobileIcon />
<div> Mobile app</div>
</NavLink>
)}
)} */}
</div>

<Logout
Expand Down
2 changes: 1 addition & 1 deletion app/hocs/auth/withLogoutReset.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export default function withLogoutReset(
return compose(
withData(authActions, mapAuthDataToProps),
withReset(actions, shouldReset),
// withoutProps(propName),
withoutProps(propName),
)
}
12 changes: 10 additions & 2 deletions app/modules/claim.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,19 @@ export const handleN3GasClaim = async ({
endpoint = await getRPCEndpoint(net)
}

const rpcClient = new n3Rpc.RPCClient(endpoint)
const version = await rpcClient.execute(
new n3Rpc.Query({
method: 'getversion',
params: [],
}),
)
const networkMagic = version.network || version.magic || 844378958

const CONFIG = {
account: FROM_ACCOUNT,
rpcAddress: endpoint,
// TODO: this will have to by dynamic based on test/mainnets
networkMagic: 844378958,
networkMagic,
}
const facade = await n3Api.NetworkFacade.fromConfig({
node: endpoint,
Expand Down
13 changes: 11 additions & 2 deletions app/modules/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,22 @@ export const sendTransaction = ({
endpoint = await getRPCEndpoint(net)
}

const rpcClient = new n3Rpc.RPCClient(endpoint)
const version = await rpcClient.execute(
new n3Rpc.Query({
method: 'getversion',
params: [],
}),
)

const networkMagic = version.network || version.magic || 844378958

const FROM_ACCOUNT = new n3Wallet.Account(wif)

const CONFIG = {
account: FROM_ACCOUNT,
rpcAddress: endpoint,
// TODO: this will have to by dynamic based on test/mainnets
networkMagic: 844378958,
networkMagic,
}

const facade = await n3Api.NetworkFacade.fromConfig({
Expand Down

0 comments on commit d2037ff

Please sign in to comment.