fixup ID allocation and a few other things

This commit is contained in:
whyrusleeping
2020-08-19 12:54:33 -07:00
parent 073efeeacb
commit 2ab202a03d
7 changed files with 162 additions and 122 deletions
+8
View File
@@ -2,6 +2,8 @@ package full
import (
"context"
"encoding/json"
"fmt"
"github.com/filecoin-project/specs-actors/actors/abi/big"
@@ -122,6 +124,12 @@ func (a *MsigAPI) MsigPropose(ctx context.Context, msig address.Address, to addr
Params: enc,
}
b, err := json.Marshal(msg)
if err != nil {
panic(err)
}
fmt.Println("prpopose message: ", string(b))
smsg, err := a.MpoolAPI.MpoolPushMessage(ctx, msg, nil)
if err != nil {
return cid.Undef, xerrors.Errorf("failed to push message: %w", err)