Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync feature/range-type branch with master #2747

Merged
merged 120 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
acb1e61
improve end pos of argument label: include colon
turbolent Jun 29, 2023
6f71d49
move support for suggested fixes to sema
turbolent Jun 29, 2023
f681b3d
add suggested fixes for missing argument label error and incorrect ar…
turbolent Jun 29, 2023
31f7035
Merge branch 'master' into bastian/improve-argument-labels
turbolent Jun 29, 2023
dc80acb
suggest optional chaining
turbolent Jun 30, 2023
0e6d04a
use diff command to generate diff
turbolent Jul 6, 2023
9f9c5fd
Merge pull request #2636 from onflow/bastian/fix-compat-check-diff
turbolent Jul 6, 2023
7f0f7e6
add support for max parameter count
turbolent Jun 26, 2023
4a8ffd9
Update runtime/sema/type.go
turbolent Jun 26, 2023
76ff4d3
lint
turbolent Jun 27, 2023
46cc113
fix merge
turbolent Jul 4, 2023
123ef2c
fix resource loss check
turbolent Jun 27, 2023
1a5b751
fix checking of reference expressions involving optionals
turbolent Jun 26, 2023
74e4557
do not repeatedly report type mismatch errors
turbolent Jun 26, 2023
c8d793a
test should fail
turbolent Jun 26, 2023
9a3aa84
fix reference expression borrow type
turbolent Jun 26, 2023
90418ca
adjust tests
turbolent Jun 26, 2023
5719f00
simplify boolean expression
turbolent Jun 26, 2023
ea8981f
do not unwrap referenced optional anymore
turbolent Jun 27, 2023
ef71256
Add runtime tracking for reference to optional resource
SupunS Jul 3, 2023
bb98151
add reproducer for stack overflow issue
turbolent Jun 30, 2023
458f734
prevent recursion in transfers
turbolent Jun 30, 2023
bb4c1eb
prevent transfer of insertion target
turbolent Jun 30, 2023
5246348
make resursive transfer error a user error, improve test name
turbolent Jul 4, 2023
fba2918
add test case for recursive transfer via function argument
turbolent Jul 4, 2023
a393e87
Merge pull request #2656 from onflow/supun/master-port-internal-128
SupunS Jul 12, 2023
563c84b
Merge pull request #2657 from onflow/supun/master-port-internal-130
SupunS Jul 12, 2023
9df8e23
Merge pull request #2658 from onflow/supun/master-port-internal-129
SupunS Jul 12, 2023
ee7b48d
Merge branch 'master' of https://github.com/onflow/cadence into supun…
SupunS Jul 12, 2023
bca3e4e
Merge pull request #2659 from onflow/supun/master-port-internal-133
SupunS Jul 12, 2023
2bfdc82
v0.39.14
SupunS Jul 11, 2023
931e30b
Merge pull request #2660 from onflow/supun/bump-version
SupunS Jul 12, 2023
f25610c
Add crasher test
SupunS Jul 4, 2023
265e7fa
check if value is destroyed
turbolent Jul 4, 2023
2f574ac
add runtime test
turbolent Jul 4, 2023
4be9b8b
assert error
turbolent Jul 4, 2023
1119bd4
use existing constant name
turbolent Jul 4, 2023
12afeae
handle location range with nil hasPosition
turbolent Jul 4, 2023
1869acb
Merge pull request #2619 from onflow/bastian/improve-argument-labels
turbolent Jul 13, 2023
5a8f426
Merge branch 'master' into bastian/suggest-optional-chaining
turbolent Jul 13, 2023
316e8a9
Merge pull request #2625 from onflow/bastian/suggest-optional-chaining
turbolent Jul 13, 2023
21efa9b
Merge pull request #2661 from onflow/supun/port-internal-136
SupunS Jul 13, 2023
0803ed1
Introduce reversed in Array type
darkdrag00nv2 Jul 11, 2023
34549f7
Rename function to reverse from reversed
darkdrag00nv2 Jul 11, 2023
84e7a9e
Use v.Type instead of creating new type.
darkdrag00nv2 Jul 16, 2023
bbb3bdd
reformat to tabs
darkdrag00nv2 Jul 16, 2023
344ce6a
add tests for fixed-sized array and fix return type of function
darkdrag00nv2 Jul 16, 2023
f774a65
Ensure ArrayReverseFunctionType only accepts sema.ArrayType
darkdrag00nv2 Jul 19, 2023
3960890
Use "index" instead of "idx"
darkdrag00nv2 Jul 19, 2023
4d42e5f
Improve test case
darkdrag00nv2 Jul 19, 2023
24ca444
Merge pull request #2654 from darkdrag00nv2/reversed_array
SupunS Jul 19, 2023
6d689b2
report error on composite definition, not member
dsainati1 Jul 19, 2023
291d81c
Merge branch 'master' of github.com:onflow/cadence into sainati/error…
dsainati1 Jul 19, 2023
1e282eb
assert location in tests
dsainati1 Jul 19, 2023
181924e
Merge pull request #2665 from onflow/sainati/error-positioning
dsainati1 Jul 19, 2023
a93d153
Follow links for validation during storage iteration
SupunS Jul 21, 2023
5cf6009
Temporarily remove deprecations for existing capability API
m-Peter Jul 21, 2023
ae4c521
Handle wrapped errors returned from FVM
SupunS Jul 21, 2023
a32ac46
Add test for error mis-clasification
SupunS Jul 21, 2023
19dbd0e
Introduce filter in VariableSizedArray type
darkdrag00nv2 Jul 24, 2023
abb7402
Wrap host env errors with external errors
SupunS Jul 26, 2023
fe2ba63
Update go.cap
SupunS Jul 27, 2023
ae5936a
Also support fixed sized array types
darkdrag00nv2 Jul 29, 2023
ff1207f
Address review comments
darkdrag00nv2 Jul 31, 2023
4cac1eb
fix lint
darkdrag00nv2 Jul 31, 2023
ae0b246
get rid of useless variable i
darkdrag00nv2 Jul 31, 2023
5ea8284
Merge pull request #2683 from onflow/supun/handle-external-errors
SupunS Aug 1, 2023
e5694e7
Pass down the location range
SupunS Aug 1, 2023
b127194
Merge branch 'master' of https://github.com/onflow/cadence into supun…
SupunS Aug 1, 2023
7655a90
Merge pull request #2676 from onflow/supun/fix-storage-iteration
SupunS Aug 1, 2023
13d2513
Fix error on reference creation with invalid type
SupunS Aug 2, 2023
c8833d2
Merge pull request #2687 from onflow/supun/fix-type-error
SupunS Aug 2, 2023
62d6ec8
Merge pull request #2673 from m-Peter/temporarily-remove-existing-cap…
turbolent Aug 2, 2023
48e73aa
remove unused code
turbolent Aug 3, 2023
c373e38
provide location ranges
turbolent Aug 3, 2023
937ff73
ensure errors with location, position, and suggested fixes, can produ…
turbolent Aug 3, 2023
d278372
fix error types
turbolent Aug 3, 2023
e010922
Merge pull request #2692 from onflow/bastian/cleanup
turbolent Aug 3, 2023
440fb31
fix run for push
turbolent Aug 3, 2023
f9d584c
Address review comments
darkdrag00nv2 Aug 3, 2023
8d83423
update to Go 1.20
turbolent Aug 3, 2023
f8d763e
improve random value generation, use local random generator
turbolent Aug 3, 2023
9962b85
v0.40.0
turbolent Aug 3, 2023
d0f1acc
Merge pull request #2694 from onflow/bastian/go-1.20
turbolent Aug 3, 2023
96403f2
Merge pull request #2695 from onflow/release/v0.40.0
turbolent Aug 3, 2023
e940e2d
Update Blockchain.reset() function to require a block height
m-Peter Aug 4, 2023
c5a7641
Add the Test.assertError() helper function
m-Peter Aug 4, 2023
ff06b1d
Improve docstring wordings for Test contract
m-Peter Aug 7, 2023
fcb488b
Merge pull request #2696 from m-Peter/cadence-testing-framework-impro…
SupunS Aug 8, 2023
b1ca6fa
update runtime interface method for randomness
Aug 9, 2023
a64c735
remove slice allocation
Aug 9, 2023
70f0ddf
Hex enc user input in error to avoid invalid UTF-8
fxamacker Aug 9, 2023
016525d
Merge pull request #2704 from onflow/fxamacker/fix-potential-invalid-…
fxamacker Aug 9, 2023
d68565d
minor change
Aug 9, 2023
9c2eb9d
Reuse type slice and reorganize tests
darkdrag00nv2 Aug 12, 2023
af119ed
Merge pull request #2678 from darkdrag00nv2/filter_array
SupunS Aug 14, 2023
5051efd
Give CompositeTypeHandler higher precedence over getUserCompositeType
m-Peter Aug 15, 2023
e287ab0
Merge pull request #2706 from onflow/tarak/new-unsafeRandom-signature
tarakby Aug 16, 2023
2a4fe65
add capability field to capabilitity controllers
turbolent Aug 16, 2023
2a39a39
Add a utility method to the Test.Blockchain struct for moving the blo…
m-Peter Aug 17, 2023
853a510
Merge pull request #2729 from m-Peter/testing-framework-move-time-uti…
SupunS Aug 17, 2023
128aea5
Merge pull request #2724 from onflow/bastian/2711-controller-capabili…
turbolent Aug 17, 2023
dd65cc4
add test for attachment on built-in composite
turbolent Aug 17, 2023
c8e3f03
Add test for inner container mutation while iterating outer
SupunS Aug 17, 2023
893aea8
Merge pull request #2732 from onflow/bastian/test-builtin-composite-a…
turbolent Aug 18, 2023
a8e229a
Allow moveTime function to accept negative time deltas for going back…
m-Peter Aug 18, 2023
b775cda
Add more tests
SupunS Aug 18, 2023
75714d7
Merge pull request #2734 from m-Peter/testing-framework-move-time-bac…
turbolent Aug 18, 2023
510df95
Merge pull request #2733 from onflow/supun/container-mutation-test
SupunS Aug 18, 2023
7355acf
Introduce map in Array type
darkdrag00nv2 Aug 18, 2023
a8519ad
Merge pull request #2717 from m-Peter/composite-type-handler-precedence
SupunS Aug 18, 2023
4dc39ff
Update runtime/interpreter/value.go
darkdrag00nv2 Aug 19, 2023
b8a7fe3
address review comments
darkdrag00nv2 Aug 19, 2023
3d521f7
Update runtime/interpreter/value.go
darkdrag00nv2 Aug 20, 2023
a09ea5f
add meeting notes for 2023-08-15
turbolent Aug 22, 2023
519407f
Review suggestions
darkdrag00nv2 Aug 23, 2023
8cd7819
Merge pull request #2737 from darkdrag00nv2/map_function_array
SupunS Aug 23, 2023
d81ee60
Add cadence-tools/test as a dependency to language server
SupunS Aug 23, 2023
f63f38e
Merge pull request #2742 from onflow/supun/fix-update-tool
SupunS Aug 24, 2023
f1db11c
Merge pull request #2740 from onflow/bastian/meeting-notes-2023-08-15
turbolent Aug 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- 'v**'

env:
GO_VERSION: '1.19.2'
GO_VERSION: '1.20'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- 'v**'

env:
GO_VERSION: '1.19.2'
GO_VERSION: '1.20'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- 'v**'

env:
GO_VERSION: '1.19.2'
GO_VERSION: '1.20'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/compatibility-check-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
type: string

env:
GO_VERSION: '1.19.2'
GO_VERSION: '1.20'

concurrency:
group: ${{ github.workflow }}-${{ inputs.base-branch || github.run_id }}-${{ inputs.chain }}
Expand Down Expand Up @@ -113,6 +113,5 @@ jobs:
# Check Diff

- name: Check diff
working-directory: ./tools/compatibility-check
run: |
go run ./cmd/check_diff/main.go ../../tmp/output-old.txt ../../tmp/output-new.txt
diff -u --color ./tmp/output-old.txt ./tmp/output-new.txt
4 changes: 2 additions & 2 deletions .github/workflows/compatibility-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
- 'v**'

env:
GO_VERSION: '1.19.2'
GO_VERSION: '1.20'

concurrency:
group: ${{ github.workflow }}-${{ inputs.base || github.run_id }}
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
echo "branch=`(echo "${{ github.event.pull_request.head.sha }}")`" >> $GITHUB_OUTPUT
echo "base=`(echo "${{ github.base_ref }}")`" >> $GITHUB_OUTPUT
else
echo "repo=`(echo "${{ inputs.repo || 'onflow/cadence' }}")`" >> $GITHUB_OUTPUT
echo "repo=`(echo "${{ inputs.repo || github.repository }}")`" >> $GITHUB_OUTPUT
echo "branch=`(echo "${{ inputs.branch }}")`" >> $GITHUB_OUTPUT
echo "base=`(echo "${{ inputs.base }}")`" >> $GITHUB_OUTPUT
fi
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- 'v**'

env:
GO_VERSION: '1.19.2'
GO_VERSION: '1.20'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
Expand All @@ -39,7 +39,7 @@ jobs:
run: sh crypto_setup.sh

- name: Update Cadence
run: go mod edit -replace github.com/onflow/cadence=github.com/${{ github.event.pull_request.head.repo.full_name }}@${{ github.event.pull_request.head.sha }}
run: go mod edit -replace github.com/onflow/cadence=github.com/${{ github.event.pull_request.head.repo.full_name || github.repository }}@${{ github.event.pull_request.head.sha || github.sha }}

- name: Tidy up
run: go mod tidy
Expand All @@ -63,7 +63,7 @@ jobs:
cache: true

- name: Update Cadence
run: go mod edit -replace github.com/onflow/cadence=github.com/${{ github.event.pull_request.head.repo.full_name }}@${{ github.event.pull_request.head.sha }}
run: go mod edit -replace github.com/onflow/cadence=github.com/${{ github.event.pull_request.head.repo.full_name || github.repository }}@${{ github.event.pull_request.head.sha || github.sha }}

- name: Tidy up
run: go mod tidy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
default: 'master'

env:
GO_VERSION: '1.19.2'
GO_VERSION: '1.20'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
Expand Down
2 changes: 1 addition & 1 deletion encoding/json/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ func (d *Decoder) decodeAddress(valueJSON any) cadence.Address {
actualPrefix := v[:prefixLength]
if actualPrefix != addressPrefix {
panic(errors.NewDefaultUserError(
"invalid address prefix: expected `%s`, got `%s`",
"invalid address prefix: (shown as hex) expected %x, got %x", // hex encoding user input (actualPrefix) avoids invalid UTF-8.
addressPrefix,
actualPrefix,
))
Expand Down
10 changes: 10 additions & 0 deletions encoding/json/encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,16 @@ func TestEncodeAddress(t *testing.T) {
)
}

func TestDecodeInvalidAddress(t *testing.T) {

t.Parallel()

msg := `{"type":"Address","value":"000000000102030405"}`

_, err := json.Decode(nil, []byte(msg))
require.ErrorContains(t, err, "invalid address prefix: (shown as hex) expected 3078, got 3030")
}

func TestEncodeInt(t *testing.T) {

t.Parallel()
Expand Down
1 change: 1 addition & 0 deletions go.cap
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ github.com/stretchr/testify/require (network)
github.com/texttheater/golang-levenshtein/levenshtein (file)
github.com/zeebo/blake3/internal/consts (file)
golang.org/x/xerrors (runtime)
github.com/onflow/cadence/runtime/interpreter (runtime)
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/onflow/cadence

go 1.18
go 1.20

require (
github.com/bits-and-blooms/bitset v1.5.0
Expand Down
167 changes: 167 additions & 0 deletions meetings/2023-08-15.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
# Aug 14th, 2023

## Ways to contribute

* Participate in [FLIP (Flow Improvement Proposal) discussions](https://github.com/onflow/flips)
* Contribute to Cadence implementation: ➡️[GitHub issues](https://github.com/onflow/cadence/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22Good+First+Issue%22)
* Contribute Cadence tools: ➡️[GitHub issues](https://github.com/onflow/cadence-tools/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22Good+First+Issue%22)

## FLIPs

### Interface Conformance Improvements

* FLIP: [https://github.com/onflow/flips/pull/83](https://github.com/onflow/flips/pull/83)
* Status:
* FLIP approved and merged 🎉

### Remove pub, pub(set) and priv

* FLIP: [https://github.com/onflow/flips/pull/84](https://github.com/onflow/flips/pull/84)
* Status:
* FLIP approved and merged 🎉

### Emit events from function conditions, allow concrete events in interfaces

* FLIP: [https://github.com/onflow/flips/pull/111](https://github.com/onflow/flips/pull/111)
* Status:
* FLIP approved and merged 🎉

### Remove restricted types, interface set types

* FLIP: [https://github.com/onflow/flips/pull/85](https://github.com/onflow/flips/pull/85)
* Status:
* FLIP approved and merged 🎉

### Add Range type

* FLIP: [https://github.com/onflow/flips/pull/96](https://github.com/onflow/flips/pull/96)
* Status:
* FLIP approved and merged 🎉

### External Mutability

* Vision: [https://github.com/onflow/flips/pull/97](https://github.com/onflow/flips/pull/97)
* FLIPs:
* **Change member access semantic**
* FLIP: [https://github.com/onflow/flips/pull/89](https://github.com/onflow/flips/pull/89)
* Status:
* FLIP approved and merged 🎉
* **Improve entitlement mappings**
* FLIP: [https://github.com/onflow/flips/pull/94](https://github.com/onflow/flips/pull/94)
* Status:
* FLIP approved and merged 🎉
* **Introduce built-in mutability entitlements**
* FLIP: [https://github.com/onflow/flips/pull/86](https://github.com/onflow/flips/pull/86)
* Status:
* Positive sentiment
* No new feedback in last few weeks
* Implementation and documentation ready
* Last conversation was about naming convention for entitlements
* Open problems:
* None
* Next steps:
* **Approved**

### Account Type

* FLIP: [https://github.com/onflow/flips/pull/92](https://github.com/onflow/flips/pull/92)
* Status:
* Positive sentiment
* No new feedback in last few weeks
* Implementation ready
* Open problems:
* None
* Next steps:
* **Approved**

### Remove nested type requirements

* FLIP: [https://github.com/onflow/flips/pull/118](https://github.com/onflow/flips/pull/118)
* Overview:
* Remove nested type requirements
* Allow declaration of events in interfaces as concrete types (used in core contracts)
* Status:
* Positive sentiment
* No new feedback in last few weeks
* Implementation ready (2 PRs)
* Open problems:
* None
* Next steps:
* **Approved**

### Random function

* FLIP: [https://github.com/onflow/flips/pull/118](https://github.com/onflow/flips/pull/118)
* Overview:
* Rename unsafeRandom to random, underlying implementation has been secured using Flow protocol native random beacon
* Update the interface to a safer and more convenient one (generalized types and a modulo parameter)
* Rollout: add random, deprecate unsafeRandom, finally remove in SC release
* Status:
* Positive sentiment for random
* Open problems:
* Behavior in scripts
* Should not panic
* Several options
* Naming:
* Potential for misuse by developers. Unsafe → safe renaming might be confusing
* Maybe addressed by commit-reveal scheme FLIP: [https://github.com/onflow/flips/pull/123](https://github.com/onflow/flips/pull/123)
* Next steps:
* Determine script behavior, maybe propose in separate FLIP
* Schedule breakout session
* Deniz
* You? Leave a comment!
* Feedback:
* Just switch unsafeRandom to safe random generator for now
* Different name/indicator to prevent misuse?
* Trigger developers to check documentation, see/use commit-reveal scheme design pattern to use returned safe random properly
* `random(iReadTheDocs: Bool)`
* Our bar is very high, other systems isn't

### Commit-reveal scheme for non-reverted randomness

* FLIP: [https://github.com/onflow/flips/pull/123](https://github.com/onflow/flips/pull/123)
* Overview:
* Provide a safe pattern to address transaction abortion after a random is revealed
* Commit to block
* In the future, query history of past randoms
* Use past, committed seed for new random
* Status:
* Positive sentiment
* Waiting for feedback
* Open problems:
* None
* Next steps:
* Gather more feedback

### Remove custom destructors

* FLIP: [https://github.com/onflow/flips/pull/131](https://github.com/onflow/flips/pull/131)
* Overview:
* Proposal to address inability for users to destroy resources they own
* One of the discussed options (others: try/catch, etc.)
* Originated from attachments feature (attachment might prevent destruction of whole resource)
* Remove destroy
* Allows users to always destroy resources
* Status:
* New
* Very much an RFC!
* Open problems:
* Philosophical question (sending to "burner account")
* Existing code / applications
* "Migration" path for use-cases like FT total supply
* Next steps:
* Discuss
* Breakout session
* You? Leave a comment!
* Publish resource destruction options document, add to FLIP
* Feedback:
* Provide details on impact on applications, e.g. core contracts like FT/NFT
* Chicken-and-egg problem: need more data on how feature is used, can then figure out if/what alternative is
* Even if exploit vector isn’t used today, it should be addressed/prevented
* If important use-case exists, also not worth it to remove
* Emitting events could maybe be allowed
* Given impact, reach out to more developers / gather more feedback

## Related FLIPs / forum discussions

* [https://forum.onflow.org/t/storage-fees-improvements-and-few-random-ideas-on-the-way/5104](https://forum.onflow.org/t/storage-fees-improvements-and-few-random-ideas-on-the-way/5104)
2 changes: 1 addition & 1 deletion npm-packages/cadence-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onflow/cadence-parser",
"version": "0.39.12",
"version": "0.40.0",
"description": "The Cadence parser",
"homepage": "https://github.com/onflow/cadence",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions runtime/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2361,7 +2361,7 @@ func TestGetAuthAccount(t *testing.T) {

errs := checker.RequireCheckerErrors(t, err, 1)

assert.IsType(t, &sema.ArgumentCountError{}, errs[0])
assert.IsType(t, &sema.InsufficientArgumentsError{}, errs[0])
})

t.Run("too many args", func(t *testing.T) {
Expand All @@ -2388,7 +2388,7 @@ func TestGetAuthAccount(t *testing.T) {
)
errs := checker.RequireCheckerErrors(t, err, 1)

assert.IsType(t, &sema.ArgumentCountError{}, errs[0])
assert.IsType(t, &sema.ExcessiveArgumentsError{}, errs[0])
})

t.Run("transaction", func(t *testing.T) {
Expand Down
Loading
Loading