Contract call - e.split is not a function

Hi,

I’m try to call a non static function following this example:

My function takes two arguments, but I’m getting an erron when call as example:

let args = ["name","description"];
const response = await deployed.call('registerProject', { args: args.join(' ')})

TypeError: e.split is not a function
at /node_modules/@aeternity/aepp-sdk/dist/aepp-sdk.js:1:77265
at /node_modules/@aeternity/aepp-sdk/dist/aepp-sdk.js:1:77603

I also try passing an array but does not work.
Thanks

Hey @ialberquilla,
Just try to use this way https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/contract-aci-usage.md
aecontrac example was outdated and will be fixed soon

1 Like