You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Func compilation error: cannot assign an expression of type (slice, slice) to a variable or pattern of type (slice, slice, slice, int, int, cell, cell).
#1259
Open
AlirezaEthDev opened this issue
Oct 8, 2024
· 0 comments
But whenever I try to compile the contract via compile.js this error throwed:
Func compilation error: Pugy.fc:44:132: error: cannot assign an expression of type (slice, slice) to a variable or pattern of type (slice, slice, slice, int, int, cell, cell): cannot unify type (slice, slice, slice, int, int, cell, cell) with (slice, slice)
var (slice owner, slice name, slice symbol, int decimals, int total_supply, cell balance_dict, cell approve_dict) = load_data();
I am using @ton-community/func-js package to compile the contract.
My OS is Windows 10!
The text was updated successfully, but these errors were encountered:
This is the whole of my smart contract (called
Pugy.fc
) that I'm developing it:And this is
compile.js
to compile it:But whenever I try to compile the contract via
compile.js
this error throwed:I am using
@ton-community/func-js
package to compile the contract.My OS is Windows 10!
The text was updated successfully, but these errors were encountered: