Skip to content
tanyuan edited this page Sep 11, 2017 · 1 revision

using Neo.SmartContract.Framework;
using Neo.SmartContract.Framework.Services.Neo;

public class HelloWorld : FunctionCode
{
    public static string Main()
    {
        Storage.Put(Storage.CurrentContext, "Hello", "World");
        return Storage.Get(Storage.CurrentContext, "Hello").AsString();
    }
}

执行码:00C56B6168164E656F2E53746F726167652E476574436F6E746578740548656C6C6F05576F726C64615272680F4E656F2E53746F726167652E5075746168164E656F2E53746F726167652E476574436F6E746578740548656C6C6F617C680F4E656F2E53746F726167652E476574616C7566

参数:空

结果:World>

Clone this wiki locally