Hello all,
I’m trying to build a simple aepp with react and waellet (using create-react-app).
Here’s the code for anyone wanting to check - GitHub - axiomatic-aardvark/React-Waellet: A react implementation of Aeternitys Waellet with basic functionality
The static functions I call on the deployed contract (contract address: ct_2vESASvwXNxMoyi4LMFw7uyMp8P1H9BzsoE87SFyuSxA5F68q5) work perfectly.
Also all of the functions work as intended when I call them from a simple Aeproject with the js sdk.
But when I try to call a stateful function (new_contract) from the react project, like this:
const newContract = async () => {
await window.Aepp.request
.contractCall({
source: contractSource,
address: deployedContractAddr,
method: 'new_contract',
params: Object.values(newContractArgs),
amount: 1000000,
})
.then(result => {
console.log('NEW CONTRACT');
const res = result.decodedResult;
console.log(res);
});
};
It gives me
Transaction cannot be processed
and when I click “See transaction details” it opens 10+ beowser tabs which all say “Your file was not found”
Any help would be greatly appreciated!
Thanks in advance.