Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace non-exchange-related api.mymonero.com default calls with localhost. Resolves #147. #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/mymonero-lws-client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LWSClient {
this.appName = options.appName || 'MyMonero'
this.appVersion = options.appVersion || '1.3.0'
this.api_key = options.api_key || null,
axios.defaults.baseURL = options.url || 'https://api.mymonero.com'
axios.defaults.baseURL = options.url || 'localhost'
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/mymonero-wallet-manager/src/Wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Wallet {
this.keyImageCache = []
this.bridgeClass = bridge
this.lwsClient = apiClient
this.url = options.url || 'https://api.mymonero.com'
this.url = options.url || 'localhost'
this.feePerb = null
this.feeMask = null
this.address = options.address || null
Expand Down
2 changes: 1 addition & 1 deletion packages/mymonero-wallet-manager/src/WalletManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Wallet = require('./Wallet')
const ContactManager = require('./ContactManager')

class WalletManager {
constructor (netType = 'MAINNET', url = 'https://api.mymonero.com') {
constructor (netType = 'MAINNET', url = 'localhost') {
this.netType = netType
this.url = url
this.bridgeClass = {}
Expand Down