Skip to content

Commit

Permalink
chore: minor refactor on converting go-fil-market.SignedStorageAsk to…
Browse files Browse the repository at this point in the history
… SignedStorageAsk
  • Loading branch information
zl03jsj committed Sep 9, 2022
1 parent daa2ba1 commit 88987d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions venus-shared/types/market/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ func (sa *SignedStorageAsk) ToChainAsk() *storagemarket.SignedStorageAsk {
}
}

func (sa *SignedStorageAsk) FillWithAsk(s *storagemarket.SignedStorageAsk) *SignedStorageAsk {
sa.Ask = s.Ask
sa.Signature = s.Signature
return sa
func FromChainAsk(s *storagemarket.SignedStorageAsk) *SignedStorageAsk {
return &SignedStorageAsk{Ask: s.Ask, Signature: s.Signature}
}

0 comments on commit 88987d6

Please sign in to comment.