fix: update paych mock to sat interface
This commit is contained in:
parent
e61b9b2a65
commit
4f513692f9
@ -5,8 +5,11 @@ import (
|
|||||||
|
|
||||||
"github.com/filecoin-project/go-address"
|
"github.com/filecoin-project/go-address"
|
||||||
"github.com/filecoin-project/go-state-types/abi"
|
"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/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"
|
"github.com/filecoin-project/lotus/chain/actors/builtin/paych"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -18,6 +21,18 @@ type mockState struct {
|
|||||||
lanes map[uint64]paych.LaneState
|
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{} {
|
func (ms *mockState) GetState() interface{} {
|
||||||
panic("implement me")
|
panic("implement me")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user