# Error trying to call smartcontract function

**URL:** <https://forums.sui.io/t/error-trying-to-call-smartcontract-function/45617>\
**Category:** Technical Support\
**Created:** [May 22, 2024, 10:55am UTC](https://forums.sui.io/t/error-trying-to-call-smartcontract-function/45617 "2024-05-22T10:55:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goenka](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Goenka](https://forums.sui.io/u/Goenka)\
**Post date:** [May 22, 2024, 10:55am UTC](https://forums.sui.io/t/error-trying-to-call-smartcontract-function/45617/1 "2024-05-22T10:55:13Z")

</div>

I published 3 differents package to the testnet while following the basic move tutorial

And when I try to call a function i consistently have the same error

> Transaction failed
> 
> [WALLET.SIGN\_TX\_ERROR] Transaction failed with the following error. Error checking transaction input objects: DependentPackageNotFound { package\_id: 0xdd21acdfbf5ab38a81e746477c14a8921fd2fbee353454315395c7d060ca277e }

you can actually try to call the function yourself on **suivision** , using testnet and this package id: **0xdd21acdfbf5ab38a81e746477c14a8921fd2fbee353454315395c7d060ca277e**  
Here is **Move.toml** : gist.github[dot]com/0xGoenka/ec36a82abef616dad7d3b72cc7bd8904

here is **hello\_world.move** : gist.github[dot]com/0xGoenka/ce628a38b07c6f297628f250700567fa

I’ve been stuck on this for quite a long time now lol, and would greatly appreciate your help \<3

---

<div class="post-metadata">

**Author:** ![stefan](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@stefan](https://forums.sui.io/u/stefan)\
**Post date:** [May 23, 2024, 7:27pm UTC](https://forums.sui.io/t/error-trying-to-call-smartcontract-function/45617/2 "2024-05-23T19:27:51Z")

</div>

Hi @Goenka,

Let’s try to see what’s not working here.

Here is what I tried to do on `testnet`. I created a new move project, then copied your `Move.toml` file, and your `hello_world.move` file, then called `sui move build` and then `sui client publish "."`. I made sure I had enough testnet tokens (`sui client gas`), and if you do not have, then get some using `sui client faucet`.

Below you will find a gist with all the files and commands that I run.

> <https://gist.github.com/stefan-mysten/78d2ba17fbbfc27b2feaf4fbbf7dd7ca>

---

<div class="post-metadata">

**Author:** ![stefan](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@stefan](https://forums.sui.io/u/stefan)\
**Post date:** [May 23, 2024, 7:47pm UTC](https://forums.sui.io/t/error-trying-to-call-smartcontract-function/45617/3 "2024-05-23T19:47:01Z")

</div>

When you run `sui client publish`, you want to look for the `Published Objects: PackageID` section of the `Object Changes` table. That will be your package ID that you need to use. Double check that indeed you got the right one.

---

<div class="post-metadata">

**Author:** ![stefan](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@stefan](https://forums.sui.io/u/stefan)\
**Post date:** [May 23, 2024, 7:47pm UTC](https://forums.sui.io/t/error-trying-to-call-smartcontract-function/45617/4 "2024-05-23T19:47:34Z")

</div>

Also, make sure that you are executing the wallet transaction on the same network as where the package was deployed.
