-
Notifications
You must be signed in to change notification settings - Fork 37
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
Preview review v3.6.40 - Reports #338
Comments
Don't forget to run some contract xunit tests too. If you need help with template or example |
#304 should be reverted until tested and cleaned up more. After evaluating there is some inconsistencies with formats and workings. Im trying to fix it up now... |
Revert or fix in another pr? |
Let me try to fix 1st. |
It fine for now. Needs some upgrades. |
I take that back some of the commands don't work. When you revert reopen #304
Try not to use Regex makes it hard to quickly understand; unless it a very lengthy task to validate. Why you use Fix
|
@chenzhitong @Liaojinghui
|
@Liaojinghui are we going to revert #304 ? or we leaving it broken? @chenzhitong havent heard anything from him. |
Revert requires another pr now. Maybe try to fix it in another pr. |
OK, I'll fix it in another pr next week |
It started out as Base64. You asked me to change it to Hex. #304 (comment)
Supports both big-endian with 0x and small-endian without 0x.
Can you provide me with your contract code and I'll see what's wrong. It's working on my contract. @cschuchardt88 |
Sorry about that, what i meant was to add both. Also if may have been before I wrote this #340
is that necessary? We only use in scripthash format as
Waiting on someone to send to it to me
I get no output when it empty as well. When I try to use the asset name it says using Neo.SmartContract.Framework;
using Neo.SmartContract.Framework.Attributes;
using Neo.SmartContract.Framework.Native;
using Neo.SmartContract.Framework.Services;
using System.ComponentModel;
namespace BasicNFT;
[DisplayName("MyNFT")]
[ManifestExtra("Author", "Christopher R. Schuchardt")]
[ManifestExtra("Description", "A Basic NFT Example")]
[ManifestExtra("Email", "[email protected]")]
[ManifestExtra("Version", "1.0")]
[ContractSourceCode("https://github.com/cschuchardt88/neo-templates")]
[ContractPermission("*", "*")]
public class MyNFT : Nep11Token<MyNep11State> // state is empty with only Nep11TokenState included
{
[Safe]
public override string Symbol() => "HELLOWORLD";
[DisplayName("_deploy")]
public static void OnDeployment(object data, bool update)
{
if (update)
return;
}
public ByteString Make()
{
MyNep11State state = new()
{
Owner = Runtime.CallingScriptHash,
Name = "HelloWorld",
};
var id = NewTokenId();
Mint(id, state);
return id;
}
public static bool Update(ByteString nefFile, string manifest)
{
ContractManagement.Update(nefFile, manifest);
return true;
}
public static bool Destroy()
{
ContractManagement.Destroy();
return true;
}
} |
ok |
Download nft.zip
|
Oh i forgot here is the output of
|
The error in |
Update checklist? |
Updated, if i missed anything let me know or post here. |
All major changes and backwards capability functionally appears to be working fine.
Please report any problems here.
Working & Tested
*.neo-express
file path #333The text was updated successfully, but these errors were encountered: