Skip to content

Commit

Permalink
Merge pull request #179 from Psychedelic/fix/0.3.0-fixes
Browse files Browse the repository at this point in the history
0.3.0 fixes
  • Loading branch information
ChriLnth authored Aug 23, 2021
2 parents b3f41c9 + 1d39757 commit c386bdc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@fleekhq/browser-rpc": "^2.0.2",
"@material-ui/core": "^4.11.3",
"@material-ui/icons": "^4.11.2",
"@psychedelic/plug-controller": "0.3.6",
"@psychedelic/plug-controller": "0.3.7",
"@psychedelic/plug-inpage-provider": "1.1.15",
"@reduxjs/toolkit": "^1.6.0",
"advanced-css-reset": "^1.2.2",
Expand Down
7 changes: 5 additions & 2 deletions source/Background/Keyring.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ export const getKeyringHandler = (type, keyring) => ({
},
[HANDLER_TYPES.SEND_TOKEN]: async ({ to, amount, canisterId }) => {
try {
const { height } = await keyring.send(to, BigInt(amount), canisterId);
return { height: parseInt(height.toString(), 10) };
const { height, transactionId } = await keyring.send(to, BigInt(amount), canisterId);
return {
height: parseInt(height?.toString?.(), 10),
transactionId: parseInt(transactionId?.toString?.(), 10),
};
} catch (error) {
return { error: error.message, height: null };
}
Expand Down
4 changes: 0 additions & 4 deletions source/Pages/Notification/components/Transfer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ const Transfer = ({

return (
<Layout disableProfile>

{error ? <ErrorScreen /> : (
<>
{
Expand All @@ -95,7 +94,6 @@ const Transfer = ({
/>
)
}

<>
<Tabs tabs={tabs} selectedTab={selectedTab} handleChangeTab={handleChangeTab} />
<div className={classes.buttonsWrapper}>
Expand Down Expand Up @@ -130,8 +128,6 @@ const Transfer = ({
}
</div>
</>
)

</>
)}
</Layout>
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1369,10 +1369,10 @@
node-gyp "^7.1.0"
read-package-json-fast "^2.0.1"

"@psychedelic/[email protected].6":
version "0.3.6"
resolved "https://npm.pkg.github.com/download/@psychedelic/plug-controller/0.3.6/54c1e1df00a31a814f88e4711ae6f400772e0bcea058304cf18646da31f59378#a16da18107117b380ca4ad0e6a3d2f143db60787"
integrity sha512-f2kQfpjBJjYwlf8Qc7kqUvVWR630ZfI1sER1BRmMFL9itfCUqC2jb2prjelLbvJQxU1ApXh08IlPuZZmIX5Gew==
"@psychedelic/[email protected].7":
version "0.3.7"
resolved "https://npm.pkg.github.com/download/@psychedelic/plug-controller/0.3.7/2e7fdf8abf60f97f91a8289646d70307a02f217ce91b252c8c4156e3acc91926#dcc1921d15bb8de5dd4374af35744c2e67fc879b"
integrity sha512-FwcgIr7VZ8UO1g4x5iNkVFJDYhBOqO6bSx1e0R5OwO2tf4lj6t+89edVy+mBhyUfXv6c8NYoAg2zf1mlvKqd/g==
dependencies:
"@babel/preset-env" "^7.14.4"
"@dfinity/agent" "^0.9.3"
Expand Down

0 comments on commit c386bdc

Please sign in to comment.