leopchain2019 / MetaCoin

deploying smart contracts with Truffle and Ropsten
0 stars 0 forks source link

truffle deploy error #1

Open leopchain2019 opened 3 years ago

leopchain2019 commented 3 years ago
PS F:\Github\leo\MetaCoin> truffle deploy --network ropsten

Compiling your contracts...
===========================
> Compiling .\contracts\HelloWorld.sol
> Compiling .\contracts\Migrations.sol

project:/contracts/HelloWorld.sol:5:45: TypeError: Data location must be "memory" for return parameter in function, but none was given.
    function sayHello() public pure returns(string){
                                            ^----^

Compilation failed. See above.
Truffle v5.4.11 (core: 5.4.11)
Node v12.18.2

image

leopchain2019 commented 3 years ago