Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Angelo De Caro <[email protected]>
  • Loading branch information
adecaro committed Nov 18, 2024
1 parent 74064cd commit 0483a94
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 856 deletions.
2 changes: 1 addition & 1 deletion token/core/common/interop/htlc/validator_htlc.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

// TransferHTLCValidate checks the validity of the HTLC scripts, if any
func TransferHTLCValidate[P driver.PublicParameters, T driver.Output, TA driver.TransferAction, IA driver.IssueAction](ctx *common.Context[P, T, TA, IA]) error {
func TransferHTLCValidate[P driver.PublicParameters, T driver.Output, TA driver.TransferAction, IA driver.IssueAction, DS driver.Deserializer](ctx *common.Context[P, T, TA, IA, DS]) error {
now := time.Now()

for i, in := range ctx.InputTokens {
Expand Down
4 changes: 2 additions & 2 deletions token/core/common/interop/pledge/validator_pledge.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ import (
"github.com/pkg/errors"
)

func IssuePledgeValidate[P driver.PublicParameters, T driver.Output, TA driver.TransferAction, IA driver.IssueAction](ctx *common.Context[P, T, TA, IA]) error {
func IssuePledgeValidate[P driver.PublicParameters, T driver.Output, TA driver.TransferAction, IA driver.IssueAction, DS driver.Deserializer](ctx *common.Context[P, T, TA, IA, DS]) error {
for k := range ctx.IssueAction.GetMetadata() {
ctx.CountMetadataKey(k)
}
return nil
}

func TransferPledgeValidate[P driver.PublicParameters, T driver.Output, TA driver.TransferAction, IA driver.IssueAction](ctx *common.Context[P, T, TA, IA]) error {
func TransferPledgeValidate[P driver.PublicParameters, T driver.Output, TA driver.TransferAction, IA driver.IssueAction, DS driver.Deserializer](ctx *common.Context[P, T, TA, IA, DS]) error {
for _, in := range ctx.InputTokens {
id, err := identity.UnmarshalTypedIdentity(in.GetOwner())
if err != nil {
Expand Down
Loading

0 comments on commit 0483a94

Please sign in to comment.