Contract call - e.split is not a function


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'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.

Hey @ialberquilla,
Just try to use this way
aecontrac example was outdated and will be fixed soon

1 Like