Skip to content

Commit

Permalink
Updating loom-js 1.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardonunesp committed Aug 28, 2018
1 parent dbce03b commit a2619c0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion webclient/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"babel-loader": "^8.0.0-beta.2",
"bn.js": "^4.11.8",
"ganache-cli": "^6.1.6",
"loom-js": "^1.17.0",
"loom-js": "^1.18.0",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"react-router-dom": "^4.3.1",
Expand Down
2 changes: 1 addition & 1 deletion webclient/src/components/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class Main extends React.Component {
return (
<nav className="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<NavLink to="/" className="navbar-brand">
Cards Gateway
Transfer Gateway Example
</NavLink>
<button
className="navbar-toggler"
Expand Down
4 changes: 2 additions & 2 deletions webclient/src/dc_managers/dc_account_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const {
Address,
LocalAddress,
CryptoUtils,
AddressMapper,
Contracts,
Web3Signer
} = require('loom-js/dist')

Expand Down Expand Up @@ -35,7 +35,7 @@ export default class DAppChainAccountManager {
new SignedTxMiddleware(privateKey)
]

const addressMapper = await AddressMapper.createAsync(
const addressMapper = await Contracts.AddressMapper.createAsync(
client,
new Address(client.chainId, LocalAddress.fromPublicKey(publicKey))
)
Expand Down
6 changes: 3 additions & 3 deletions webclient/src/dc_managers/dc_gateway_manager.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import BN from 'bn.js'

import {
TransferGateway,
Contracts,
CryptoUtils,
Client,
NonceTxMiddleware,
Expand Down Expand Up @@ -30,7 +30,7 @@ export default class DAppChainGatewayManager {
new SignedTxMiddleware(privateKey)
]

const transferGateway = await TransferGateway.createAsync(
const transferGateway = await Contracts.TransferGateway.createAsync(
client,
new Address(client.chainId, LocalAddress.fromPublicKey(publicKey))
)
Expand All @@ -42,7 +42,7 @@ export default class DAppChainGatewayManager {
this._transferGateway = transferGateway
this._client = client

this._transferGateway.on(TransferGateway.EVENT_TOKEN_WITHDRAWAL, event => {
this._transferGateway.on(Contracts.TransferGateway.EVENT_TOKEN_WITHDRAWAL, event => {
if (this._onTokenWithdrawal) {
this._onTokenWithdrawal(event)
}
Expand Down
6 changes: 3 additions & 3 deletions webclient/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4512,9 +4512,9 @@ long@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/long/-/long-3.2.0.tgz#d821b7138ca1cb581c172990ef14db200b5c474b"

loom-js@^1.17.0:
version "1.17.0"
resolved "https://registry.yarnpkg.com/loom-js/-/loom-js-1.17.0.tgz#a7b96a109ae1342d06c3ea4806fbb8cf8cc99ca9"
loom-js@^1.18.0:
version "1.18.0"
resolved "https://registry.yarnpkg.com/loom-js/-/loom-js-1.18.0.tgz#1552460aac74c2917e5b16bf1b0698a6228be3dd"
dependencies:
axios "^0.18.0"
bn.js "^4.11.8"
Expand Down

0 comments on commit a2619c0

Please sign in to comment.