I'm using loadScript in ethereum console to load a external js file:
loadScript('teste.js');
// teste.js
function fx() {
return 12;
}
However when I run it in ethereum console it always returns false: (teste.js is located in a folder 'src' in the datadir - admin.datadir)
loadScript('src/teste.js')
false
Why I do have this behaviour? Should return 12?
I also tried placing the .js in various reasonable locations, but the ouput of loadScript() is always false...
I hope someone could help.
Thanks