Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
Signed-off-by: Philip-21 <[email protected]>
  • Loading branch information
Philip-21 committed Feb 6, 2024
1 parent 813c826 commit 678efc4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 131 deletions.
10 changes: 1 addition & 9 deletions pkg/types/hex_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,7 @@ type HexType struct {

// Explicitly quote hex addresses so that they are interpreted as string (not int)
func (ht *HexType) MarshalYAML() (interface{}, error) {
//convert to byte type
hexBytes, err := hex.DecodeString(string(ht.HexValue[2:]))
if err != nil {
return nil, err
}
//copy bytes to fixed array
var hexArray []byte
copy(hexArray[:], hexBytes)
hexAddr, err := ht.HexWrap.WrapHexAddress([]byte(hexArray))
hexAddr, err := ht.HexWrap.WrapHexAddress([]byte(ht.HexValue))
if err != nil {
return nil, err
}
Expand Down
122 changes: 0 additions & 122 deletions pkg/types/hex_address_test.go

This file was deleted.

0 comments on commit 678efc4

Please sign in to comment.