Bugfix for alias & PIN authrecall

This commit is contained in:
mhelander 2018-01-29 22:55:50 +02:00
parent e5b8cc928f
commit d6157113ba

4
sea.js
View File

@ -502,8 +502,8 @@
const [ { key, at, proof } = {} ] = await Promise
.all(aliases.filter(({ at: { put } = {} }) => !!put)
.map(async ({ at, pub }) => {
const readStorageData = async () => {
const props = parseProps(await seaRead(remember, pub, true))
const readStorageData = async (args) => {
const props = args || parseProps(await seaRead(remember, pub, true))
let { pin, alias: aLias } = props
return (!pin && alias === aLias)