Skip to content

Commit

Permalink
Use abi types to specify padded piece size
Browse files Browse the repository at this point in the history
Instead of primitive types, use `abi.PaddedPieceSize` when getting
collateral bounds.
  • Loading branch information
masih committed Aug 10, 2023
1 parent ffa9218 commit 251cc28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion telefil.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/base64"

"github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/big"
"github.com/libp2p/go-libp2p/core/peer"
"github.com/multiformats/go-multiaddr"
Expand Down Expand Up @@ -87,7 +88,7 @@ func (f *Telefil) ChainGetGenesis(ctx context.Context) (*ChainGenesis, error) {
}
}

func (f *Telefil) StateDealProviderCollateralBounds(ctx context.Context, pieceSize uint64, verified bool) (*StateDealProviderCollateralBounds, error) {
func (f *Telefil) StateDealProviderCollateralBounds(ctx context.Context, pieceSize abi.PaddedPieceSize, verified bool) (*StateDealProviderCollateralBounds, error) {
switch resp, err := f.client.Call(ctx, methodFilStateDealProviderCollateralBounds, pieceSize, verified, nil); {
case err != nil:
return nil, err
Expand Down

0 comments on commit 251cc28

Please sign in to comment.