[Solved] Call contract failed


#1

I copied TicTacToe contract code and pasted it into https://testnet.contracts.aepps.com/.

It can be compiled and deployed successfully. But when I called make_move function, it failed as below:

Error: Invocation failed: _YXJpdGhtZXRpY19lcnJvci3L8ZY=

How to fix it? Thanks.


#2

I debugged it and found something wrong with String.concat

It only supports the total length up to 32 characters, or it will result in error: arithmetic_error


#3

That error indicates that you have been using an old compiler (pre-Minerva) and the new runtime system with safe math built-in.

If you use the new compiler this should not happen.


#4

So, you mean sdk-testnet is using old compiler, right?


#5

https://testnet.contracts.aepps.com/
It’s OK now. Must have been updated.