WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.
This repository was archived by the owner on May 18, 2019. It is now read-only.

Clarify NEO smart contract java development #6

@peterszatmary

Description

@peterszatmary

I was not able to create hello world smart contract with neo-devpack-java.

  1. maybe documentation is old
  2. or in neo-devpack-java are some java files missing

Documentation tells us to extends our smart contracts with FunctionCode or VerificationCode.

Example from doc

import AntShares.SmartContract.Framework.FunctionCode;
import AntShares.SmartContract.Framework.Services.AntShares.Storage;

public class HelloWorld extends FunctionCode{
    public static byte[] Main(String[] args){
        Storage.Put(Storage.getCurrentContext(), "Greeting to the World", "Hello World!");
        return Storage.Get(Storage.getCurrentContext(),"Greeting to the World");
    }
}

Neo-devpack-java doesnt contain this files.

Link to Antshares.SmartContract.Framework JAR by documentation is broken.

I found one issue telling that Antshares.SmartContract.Framework JAR is compiled from neo-devpack-java.

If so than above mentioned documentation is old or neo-devpack-java is missing java files.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions