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

Add Type Convert #196

Merged
merged 12 commits into from
Mar 11, 2020
Merged

Add Type Convert #196

merged 12 commits into from
Mar 11, 2020

Commits on Mar 5, 2020

  1. this unittest for

    lightszero committed Mar 5, 2020
    Configuration menu
    Copy the full SHA
    d4a231a View commit details
    Browse the repository at this point in the history
  2. Clean code

    shargon committed Mar 5, 2020
    Configuration menu
    Copy the full SHA
    2cc7c26 View commit details
    Browse the repository at this point in the history
  3. 區分push

    pushNumber
    pushBoolean
    pushDataArray
    
    過去合約中所有的數值是統一的Push
    小於等於16的數字 和 byte[0] 和  true false 是Integer
    >16的數字 和 byte[n>0] 是 ByteArray
    
    現在在合約中使用數值將直接得到正確的類型
    
    new byte[0] 是ByteArray
    true        是Boolean
    17          是Integer
    lightszero committed Mar 5, 2020
    Configuration menu
    Copy the full SHA
    ca1b0ed View commit details
    Browse the repository at this point in the history
  4. 1.修改了unittest null

    因爲現在會返回integer類型了,不再是DataArray
    
    2.修改了TypeConvert
    應該現在 new byte[0] 直接是ByteArray類型了
    lightszero committed Mar 5, 2020
    Configuration menu
    Copy the full SHA
    4d9b845 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4dbd044 View commit details
    Browse the repository at this point in the history
  6. 1.Use Helper.AsByteArray() to convert to ByteArray

    2.Use Helper.AsBigInteger() to convert to BigInteger
    3.fix unittest
    lightszero committed Mar 5, 2020
    Configuration menu
    Copy the full SHA
    8bac65b View commit details
    Browse the repository at this point in the history
  7. fix one small fault.

    lightszero committed Mar 5, 2020
    Configuration menu
    Copy the full SHA
    5b63eaf View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d96499d View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2020

  1. add value equal test

    lightszero committed Mar 9, 2020
    Configuration menu
    Copy the full SHA
    d7f3037 View commit details
    Browse the repository at this point in the history
  2. Clean code

    shargon committed Mar 9, 2020
    Configuration menu
    Copy the full SHA
    b26a6ed View commit details
    Browse the repository at this point in the history
  3. Clean code

    shargon committed Mar 9, 2020
    Configuration menu
    Copy the full SHA
    fecb35e View commit details
    Browse the repository at this point in the history
  4. fix format

    lightszero committed Mar 9, 2020
    Configuration menu
    Copy the full SHA
    494826f View commit details
    Browse the repository at this point in the history