-
Notifications
You must be signed in to change notification settings - Fork 79
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
[neotest] panic when trying to deploy contract that requests storage context in init() #3120
Comments
Well, that's the issue and it can't be fixed. You're creating a test file in the same Go module as the contract itself and this contract has an You can try |
Oh I didn't know
I tried |
Apparently it gets compiled into the So, an additional folder/package is needed. |
We don't want anyone to have the same problem. Signed-off-by: Roman Khimov <roman@nspcc.ru>
neotest: improve doc based on #3120
Current Behavior
I was trying out neotest and figured I'd try to create tests for the nep-17 token in the examples folder.
token_test.go
Trying to execute the test fail in the
DeployContract
call with the below errorwhich is here
neo-go/examples/token/token.go
Line 32 in 2f54f17
Expected Behavior
I expect no errors on deploy
Steps to Reproduce
token_test.go
TestToken_Basics
Your Environment
The text was updated successfully, but these errors were encountered: