as already discussed private chat here an explanation for everybody facing that problem
first of all it is about the node configuration itself to enable the dry-run endpoints. there are two possibilites:
-
enable the new public (and protected) dry-run endpoint in allow a higher amount of gas to be consumed (can be configured)
-
enable the debug endpoints and make the SDK using the debug endpoint instead of the protected public dry-run endpoint (currently not sure if this is possible with Go SDK, but for the Javascript SDK there is a workaround to do that)
- this is NOT recommended as it is an internal endpoint that allows unlimited gas consumption
here an example with the protected endpoint enabled using a custom (increased) gas limit:
the default gas limit of that protected dry-run endpoint is 6 000 000 gas