Phantasma SDK fixes and pha-tomb 2.2.1
Every SDK now stops a native transfer that the chain would reject, and pha-tomb compiles for the chain's current VM version by default.
- Published latest versions:
phantasma-sdk-py 4.0.2,phantasma-sdk 3.0.2(Rust),phantasma-sdk-go v0.18.2,phantasma-sdk-ts 0.20.0,PhantasmaPhoenix.RPC 0.17.0,PhantasmaPhoenix.NFT 0.7.16, andpha-tomb 2.2.1. - Every SDK refuses to sign a native transfer of 0 atoms, or of 2^63 atoms or more. The chain rejects such a transfer and still charges its fee. A larger amount goes through a
Token.TransferFungiblecall or a script transfer. - The script builder refuses a jump or a call to a target that the chain cannot reach.
PhantasmaAPI.IsValidAddressis removed from the C# and Unity SDKs. UseAddress.IsValidAddress.phantasma-sdk-tsremoveshexStringToUint8Array; usehexToBytes. The oldreadSignatureis removed, andreadSignatureV2is now calledreadSignature.- The Unity SDK core package moves to
0.14.0with these changes. The C++ SDK received the same transfer and script checks in its source repository. - pha-tomb 2.2.1 compiles for the chain's current VM version by default (
protocol:1). A contract's constructor checks that the chain runs at least the target version, so a higherprotocol:value makes it fail on the current chain.
phantasma-sdk-py | phantasma-sdk | phantasma-sdk-go | phantasma-sdk-ts | PhantasmaPhoenix.RPC | PhantasmaPhoenix.NFT | phantasma-sdk-cpp | phantasma-sdk-unity | pha-tomb
npm install phantasma-sdk-ts@latestpip install --upgrade phantasma-sdk-pycargo add phantasma-sdkgo get -u github.com/phantasma-io/phantasma-sdk-godotnet package update PhantasmaPhoenix.RPCdotnet package update PhantasmaPhoenix.NFTdotnet tool update --global pha-tomb