From e1122404d13603257e548f44cea64c51abc56f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 9 Nov 2020 18:42:22 +0100 Subject: [PATCH 1/2] pond: Fix MpoolPushMessage call --- lotuspond/front/src/chain/send.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lotuspond/front/src/chain/send.js b/lotuspond/front/src/chain/send.js index a0fc89437..c0d36b0a3 100644 --- a/lotuspond/front/src/chain/send.js +++ b/lotuspond/front/src/chain/send.js @@ -30,7 +30,7 @@ async function pushMessage(client, from, inmsg) { console.log(inmsg) - await client.call('Filecoin.MpoolPushMessage', [inmsg]) + await client.call('Filecoin.MpoolPushMessage', [inmsg, null]) } export default pushMessage From 290414e935e3db20d9d739fe16ffde9e84f9f174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 9 Nov 2020 18:42:43 +0100 Subject: [PATCH 2/2] wallet: Don't return null from WalletList --- chain/wallet/multi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/wallet/multi.go b/chain/wallet/multi.go index 532ad217b..5b603dbd5 100644 --- a/chain/wallet/multi.go +++ b/chain/wallet/multi.go @@ -90,7 +90,7 @@ func (m MultiWallet) WalletHas(ctx context.Context, address address.Address) (bo } func (m MultiWallet) WalletList(ctx context.Context) ([]address.Address, error) { - var out []address.Address + out := make([]address.Address, 0) seen := map[address.Address]struct{}{} ws := nonNil(m.Remote, m.Ledger, m.Local)