Skip to content

Commit

Permalink
Update for cbor-gen with nullable ints and without globals
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Feb 7, 2024
1 parent 45ac7d0 commit a055f35
Show file tree
Hide file tree
Showing 75 changed files with 1,776 additions and 1,768 deletions.
2 changes: 1 addition & 1 deletion abi/cbor_bytes.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
type CborBytes []byte

func (t *CborBytes) MarshalCBOR(w io.Writer) error {
if uint64(len(*t)) > cbg.ByteArrayMaxLen {
if len(*t) > cbg.ByteArrayMaxLen {
return xerrors.Errorf("byte array was too long")
}

Expand Down
2 changes: 1 addition & 1 deletion abi/cbor_string.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type CborString string
func (t *CborString) MarshalCBOR(w io.Writer) error {
scratch := make([]byte, 8)

if uint64(len(*t)) > cbg.MaxLength {
if len(*t) > cbg.MaxLength {
return xerrors.Errorf("Value in t was too long")
}

Expand Down
8 changes: 4 additions & 4 deletions builtin/v10/account/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions builtin/v10/cron/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions builtin/v10/datacap/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions builtin/v10/eam/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions builtin/v10/evm/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a055f35

Please sign in to comment.