Open keefertaylor opened 2 years ago
Thanks @keefertaylor for the detailed issue.
At the very end of the contract, there are extra spaces and a ; symbol (see screenshot). Not sure why it is there and where it is coming from, but I am able to deploy the contract by removing it.
So, the error is correct regarding the unexpected ; symbol, but as a follow-up task, we will need to investigate why the position returned in the error message is not accurate.
Description I have a contract that contains onchain views. When I try to deploy with taquito against Hangzhounet, I receive the following error:
Character 1711000 corresponds to bolded 'w' in the code below:
""" view "getStabilityFee" unit nat { GET 7; # pair (nat %privateOwnerLiquidationThreshold) (nat %stabilityFee) CDR; # nat }; view "getStorage" unit (pair (pair (pair (pair (nat %amountLoaned) (nat %collateralizationPercentage)) (pair (nat %devFundSplit) (address %developerFundContractAddress))) (pair (pair (address %governorContractAddress) (bool %initialized)) (pair (address %initializerContractAddress) (nat %interestIndex)))) (pair (pair (pair (timestamp %lastInterestIndexUpdateTime) (nat %liquidationFeePercent)) (pair (address %liquidityPoolContractAddress) (address %ovenProxyContractAddress))) (pair (pair (nat %privateOwnerLiquidationThreshold) (nat %stabilityFee)) (pair (address %stabilityFundContractAddress) (address %tokenContractAddress))))) CDR; """
The contract is compiled using the latest version of SmartPy.
Steps To Reproduce Steps to reproduce the behavior:
Expected behavior
Contract should deploy to Hangzhou net, or at least fail with a more succinct error about what data is ill-tped.
Desktop (please complete the following information):
Built in typescript on OSX. Relevant versions: node: v14.17.6 ts-node: v10.2.1 @taquito/taquito: v11.0.1