# Spec fails to publish to local env with \`scripts/test\_spec\_full.sh\`

**URL:** <https://community.lavanet.xyz/t/spec-fails-to-publish-to-local-env-with-scripts-test-spec-full-sh/111>\
**Category:** 🗜️ Specifications\
**Created:** [March 18, 2024, 9:09pm UTC](https://community.lavanet.xyz/t/spec-fails-to-publish-to-local-env-with-scripts-test-spec-full-sh/111 "2024-03-18T21:09:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruslan](https://yyz1.discourse-cdn.com/flex007/user_avatar/community.lavanet.xyz/ruslan/32/51_2.png) [@ruslan](https://community.lavanet.xyz/u/ruslan)\
**Post date:** [March 18, 2024, 9:09pm UTC](https://community.lavanet.xyz/t/spec-fails-to-publish-to-local-env-with-scripts-test-spec-full-sh/111/1 "2024-03-18T21:09:43Z")

</div>

I found a small bug in test\_spec\_full.sh when testing my spec. My spec wasn’t published to the local blockchain, the problem was in the `undefined` var.

Created PR to fix that

> <https://github.com/lavanet/lava/pull/1312>
>
> \## What does this PR do? 
> Fix error \`Error: accepts 5 arg(s), received 6\` when …\`spect\_test\_full.sh\` run 
> 
> The $STAKE var is undefined, this PR defines var for \`delegate-limit\`, also \`--delegate-limit\` can't be removed from the command, because cli rising error that this param is required

If you have the same issue and your spec fails to publish to your local env pay attention on it
