Merge pull request #1344 from filecoin-project/asr/debug

fix make debug
This commit is contained in:
Łukasz Magiera 2020-03-07 00:07:53 +01:00 committed by GitHub
commit 8f7f2e77c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,11 +57,11 @@ func init() {
return xerrors.Errorf("failed to get miner worker addr: %w", err)
}
if ret.ExitCode != 0 {
return xerrors.Errorf("failed to get miner worker addr (exit code %d)", ret.ExitCode)
if ret.MsgRct.ExitCode != 0 {
return xerrors.Errorf("failed to get miner worker addr (exit code %d)", ret.MsgRct.ExitCode)
}
w, err := address.NewFromBytes(ret.Return)
w, err := address.NewFromBytes(ret.MsgRct.Return)
if err != nil {
return xerrors.Errorf("GetWorkerAddr returned malformed address: %w", err)
}