Skip to content

Commit

Permalink
updat
Browse files Browse the repository at this point in the history
  • Loading branch information
blockchain-develop committed Apr 29, 2024
1 parent 51034cb commit b4d56da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ type CompiledInstruction struct {

// The program input data encoded in a base-58 string.
Data Base58 `json:"data"`

//
StackHeight int `json:"stackHeight"`
}

type compiledInstruction struct {
Expand All @@ -154,6 +157,9 @@ type compiledInstruction struct {

// The program input data encoded in a base-58 string.
Data Base58 `json:"data"`

//
StackHeight int `json:"stackHeight"`
}

func (ci *CompiledInstruction) MarshalJSON() ([]byte, error) {
Expand All @@ -169,6 +175,7 @@ func (ci *CompiledInstruction) UnmarshalJSON(data []byte) error {
//
ci.ProgramIDIndex = in.ProgramIDIndex
ci.Data = in.Data
ci.StackHeight = in.StackHeight
ci.Accounts = make([]uint16, 0)
if len(in.Accounts) == 0 {
return nil
Expand Down

0 comments on commit b4d56da

Please sign in to comment.