wrong ilp addresses
vhpoet opened this issue · 1 comments
vhpoet commented
Trying to get a quote for a local payment
ILP.SPSP.quote(plugin, { receiver: 'alice@wallet1.com, sourceAmount: 3 })
returns an SpspPayment
with all of the ILP addresses set to wallet1.username
. Not sure if this is an ILP issue.
SpspPayment
{
id: '9db0ee76-9e1a-4ce9-a85c-3d197f6789e6',
sourceAmount: '3',
destinationAmount: '3',
destinationAccount: 'wallet1.username',
connectorAccount: 'wallet1.username',
sourceExpiryDuration: undefined,
spsp: {
destination_account: 'wallet1.username',
shared_secret: 'iwVMVRGKEjXg73pCSGFifQ',
maximum_destination_amount: '100000000000',
minimum_destination_amount: '0.001',
ledger_info: {
currency_code: 'USD',
currency_symbol: '$',
precision: 10,
scale: 2
},
receiver_info: {
}
}
}
Webfinger lookup for alice@wallet1.com
{
"subject": "acct:alice@wallet1.com",
"links": [
{
"rel": "https://interledger.org/rel/ledgerUri",
"href": "http://wallet1.com/ledger"
},
{
"rel": "https://interledger.org/rel/socketIOUri",
"href": "http://wallet1.com/api/socket.io"
},
{
"rel": "https://interledger.org/rel/ilpAddress",
"href": "wallet1.alice"
},
{
"rel": "https://interledger.org/rel/sender/payment",
"href": "http://wallet1.com/api/payments"
},
{
"rel": "https://interledger.org/rel/sender/quote",
"href": "http://wallet1.com/api/payments/quote"
},
{
"rel": "https://interledger.org/rel/spsp/v2",
"href": "http://wallet1.com/api/spsp/alice"
}
]
}
Plugin instance
FiveBellsLedger{
_events: {
maxListeners: 10,
'_rpc:notification': [
Function
]
},
newListener: false,
verboseMemoryLeak: false,
configPrefix: undefined,
account: 'http://wallet1.com/ledger/accounts/admin',
username: 'admin',
identifier: undefined,
credentials: {
username: 'admin',
password: 'asdasd',
account: 'http://wallet1.com/ledger/accounts/admin'
},
connector: null,
debugReplyNotifications: false,
rpcId: 1,
connection: null,
connecting: false,
ready: true,
connected: false,
ws: null,
disconnect: [
Function
],
connect: [
Function
],
isConnected: [
Function
],
ledgerContext: LedgerContext{
host: 'http://wallet1.com/ledger',
ledgerMetadata: {
connectors: [
Object
],
currency_code: 'USD',
currency_symbol: '$',
ilp_prefix: 'wallet1.',
condition_sign_public_key: 'fs2ey9+WKsPzNlqE+W7DJClJPdXDekP53PWDmhPJAaU=',
urls: [
Object
],
precision: 10,
scale: 2
},
urls: {
transfer: 'http://wallet1.com/ledger/transfers/:id',
transfer_fulfillment: 'http://wallet1.com/ledger/transfers/:id/fulfillment',
transfer_rejection: 'http://wallet1.com/ledger/transfers/:id/rejection',
account: 'http://wallet1.com/ledger/accounts/:name',
auth_token: 'http://wallet1.com/ledger/auth_token',
websocket: 'ws://wallet1.com/ledger/websocket',
message: 'http://wallet1.com/ledger/messages'
},
prefix: 'wallet1.'
}
}
vhpoet commented
it was a kit issue