From 4d2765e5ba53cb0decdf1e29b189b394b1fad0a6 Mon Sep 17 00:00:00 2001 From: Aayush Date: Fri, 21 Apr 2023 16:42:31 -0400 Subject: [PATCH 1/2] chore: deps: update to FFI v1.23.0 --- extern/filecoin-ffi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/filecoin-ffi b/extern/filecoin-ffi index 70bc9fbef..86ad1ffe3 160000 --- a/extern/filecoin-ffi +++ b/extern/filecoin-ffi @@ -1 +1 @@ -Subproject commit 70bc9fbefd2d4513c45aa1c092c057d1660ca3a8 +Subproject commit 86ad1ffe36fd70b8288e3ec828a12fc18022869a From 8dec6a16728a5bd814d1cea2aa065a1b0277a3e1 Mon Sep 17 00:00:00 2001 From: Aayush Date: Fri, 21 Apr 2023 16:48:59 -0400 Subject: [PATCH 2/2] fix: test: Simulate call on parents's parents --- go.sum | 1 - itests/wdpost_test.go | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/go.sum b/go.sum index d5d31f1f5..c256baa36 100644 --- a/go.sum +++ b/go.sum @@ -345,7 +345,6 @@ github.com/filecoin-project/go-state-types v0.0.0-20201102161440-c8033295a1fc/go github.com/filecoin-project/go-state-types v0.1.0/go.mod h1:ezYnPf0bNkTsDibL/psSz5dy4B5awOJ/E7P2Saeep8g= github.com/filecoin-project/go-state-types v0.1.6/go.mod h1:UwGVoMsULoCK+bWjEdd/xLCvLAQFBC7EDT477SKml+Q= github.com/filecoin-project/go-state-types v0.1.10/go.mod h1:UwGVoMsULoCK+bWjEdd/xLCvLAQFBC7EDT477SKml+Q= -github.com/filecoin-project/go-state-types v0.11.0-rc1/go.mod h1:SyNPwTsU7I22gL2r0OAPcImvLoTVfgRwdK/Y5rR1zz8= github.com/filecoin-project/go-state-types v0.11.1 h1:GDtCN9V18bYVwXDZe+vJXc6Ck+qY9OUaQqpoVlp1FAk= github.com/filecoin-project/go-state-types v0.11.1/go.mod h1:SyNPwTsU7I22gL2r0OAPcImvLoTVfgRwdK/Y5rR1zz8= github.com/filecoin-project/go-statemachine v0.0.0-20200925024713-05bd7c71fbfe/go.mod h1:FGwQgZAt2Gh5mjlwJUlVB62JeYdo+if0xWxSEfBD9ig= diff --git a/itests/wdpost_test.go b/itests/wdpost_test.go index c94906b2f..34cc376eb 100644 --- a/itests/wdpost_test.go +++ b/itests/wdpost_test.go @@ -390,6 +390,9 @@ waitForProof: inclTs, err := client.ChainGetTipSet(ctx, pmr.TipSet) require.NoError(t, err) + inclTsParents, err := client.ChainGetTipSet(ctx, inclTs.Parents()) + require.NoError(t, err) + nv, err := client.StateNetworkVersion(ctx, pmr.TipSet) require.NoError(t, err) require.Equal(t, network.Version19, nv) @@ -410,8 +413,8 @@ waitForProof: slmsg.Params = v1PostParams.Bytes() - // Simulate call on inclTs's parents, so that the partition isn't already proven - call, err := client.StateCall(ctx, slmsg, inclTs.Parents()) + // Simulate call on inclTsParents's parents, so that the partition isn't already proven + call, err := client.StateCall(ctx, slmsg, inclTsParents.Parents()) require.NoError(t, err) require.True(t, call.MsgRct.ExitCode.IsSuccess()) }