Skip to content

Commit

Permalink
refactor(sui_types/intent): remove the limit of type IntentValue
Browse files Browse the repository at this point in the history
  • Loading branch information
Gkirito committed Dec 15, 2023
1 parent 37c874d commit c35cf8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sui_types/intent.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package sui_types

import "github.com/coming-chat/go-sui/v2/lib"
import (
"github.com/coming-chat/go-sui/v2/lib"
)

type IntentScope struct {
TransactionData *lib.EmptyEnum // Used for a user signature on a transaction data.
Expand Down Expand Up @@ -52,7 +54,6 @@ func DefaultIntent() Intent {

type IntentValue interface {
TransactionData | ~[]byte
MarshalBCS() ([]byte, error)
}

type IntentMessage[T IntentValue] struct {
Expand Down

0 comments on commit c35cf8f

Please sign in to comment.