Skip to content

Commit

Permalink
Fix msig params parse (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
raynaudoe authored Jul 5, 2022
1 parent 948d67e commit f145ddb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rosetta/services/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,6 @@ func (s *BlockAPIService) parseExecParams(msg *filTypes.Message, receipt *filTyp
}

func (s *BlockAPIService) parseMsigParams(msg *filTypes.Message) (string, error) {
r := &filLib.RosettaConstructionFilecoin{}
msgSerial, err := msg.MarshalJSON()
if err != nil {
Logger.Error("Could not parse params. Cannot serialize lotus message:", err.Error())
Expand All @@ -389,7 +388,7 @@ func (s *BlockAPIService) parseMsigParams(msg *filTypes.Message) (string, error)
return "", fmt.Errorf("this id doesn't correspond to a multisig actor")
}

parsedParams, err := r.ParseParamsMultisigTx(string(msgSerial), actorCode)
parsedParams, err := s.rosettaLib.ParseParamsMultisigTx(string(msgSerial), actorCode)
if err != nil {
Logger.Error("Could not parse params. ParseParamsMultisigTx returned with error:", err.Error())
return "", err
Expand Down

0 comments on commit f145ddb

Please sign in to comment.