You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an Anchor Solana contract that I'm trying to build a fuzzer for. Unfortunately, the templated code gehttps://github.com/wormhole-foundation/native-token-transfersneration is failing when it comes across generics:
Failed to parse ./
example-native-token-transfers/solana/target/idl/example_native_token_transfers.json: invalid type: string "A", expected internally tagged enum IdlTypeDefGeneric at line 2310 column 11
Here is the entry in the IDL that is causing issues.
Since the code generation did not work, I'm afraid that if I implement all of the necessary functionality myself that the fuzzer will not work as well. I'm okay with implementing the scaffolding myself but want to ensure that it won't be a waste of time.
I tried bringing this up in the Discord but never got a response either.
Reproduction steps
1. Download https://github.com/wormhole-foundation/native-token-transfers.
2. Install Trident
3. Run `trident fuzz add`. Notice that it fails to generate the templated code.
I mainly want to know if I can run the fuzzer with generics. I can build out the template code that failed but I don't want to do that unless I know that the fuzzer will still work.
Hello, thanks for reporting the issue. You should still be able to fuzz even though Trident could not initialize the template. However, I'm not completely sure —I’ll have a look at the issue.
Description
I have an Anchor Solana contract that I'm trying to build a fuzzer for. Unfortunately, the templated code gehttps://github.com/wormhole-foundation/native-token-transfersneration is failing when it comes across generics:
Here is the entry in the IDL that is causing issues.
Since the code generation did not work, I'm afraid that if I implement all of the necessary functionality myself that the fuzzer will not work as well. I'm okay with implementing the scaffolding myself but want to ensure that it won't be a waste of time.
I tried bringing this up in the Discord but never got a response either.
Reproduction steps
1. Download https://github.com/wormhole-foundation/native-token-transfers. 2. Install Trident 3. Run `trident fuzz add`. Notice that it fails to generate the templated code.
Reproduction URL
https://github.com/wormhole-foundation/native-token-transfers
Screenshots
Logs
OS
No response
The text was updated successfully, but these errors were encountered: