Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OEP code should be in Python #45

Closed
WyattMufson opened this issue Apr 23, 2019 · 3 comments · Fixed by #47
Closed

OEP code should be in Python #45

WyattMufson opened this issue Apr 23, 2019 · 3 comments · Fixed by #47

Comments

@WyattMufson
Copy link
Contributor

Currently the functions examples are written in C# (see OEP4, OEP5, etc). Since Python is the recommended language for use, these examples should be offered in Python instead.

@Honglei-Cong
Copy link
Member

Template codes in python is available at https://dev-docs.ont.io/#/docs-en/smartcontract/02-template

@WyattMufson
Copy link
Contributor Author

Awesome, good resource to have.

I meant more the C# description for transfer

public static bool transfer(byte[] from, byte[] to, BigInteger amount)

Should it be written in Python like this?

def transfer(from, to, amount)

@WyattMufson
Copy link
Contributor Author

@Honglei-Cong opened a PR to resolve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants