fix: update paych mock to sat interface

This commit is contained in:
frrist 2022-11-16 15:46:32 -08:00
parent e61b9b2a65
commit 4f513692f9

View File

@ -5,8 +5,11 @@ import (
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-state-types/abi"
actorstypes "github.com/filecoin-project/go-state-types/actors"
"github.com/filecoin-project/go-state-types/big"
"github.com/ipfs/go-cid"
"github.com/filecoin-project/lotus/chain/actors"
"github.com/filecoin-project/lotus/chain/actors/builtin/paych"
)
@ -18,6 +21,18 @@ type mockState struct {
lanes map[uint64]paych.LaneState
}
func (ms *mockState) Code() cid.Cid {
panic("paych mock does not have CID")
}
func (ms *mockState) ActorKey() string {
return actors.PaychKey
}
func (ms *mockState) ActorVersion() actorstypes.Version {
panic("paych mock is unversioned")
}
func (ms *mockState) GetState() interface{} {
panic("implement me")
}