mitchpierias / advanced-eos-examples Goto Github PK
View Code? Open in Web Editor NEWEOS Smart Contract Development Examples
License: MIT License
EOS Smart Contract Development Examples
License: MIT License
You are providing permission to an account. Providing owner permission is not safe, instead, you can provide @Active permission.
Hi MitchPierias
In your t0_hex(); action you didn't pass the parameter{length}
void hash(const string& str) {
// Hash the given string
checksum256 hashed = create_hash(str);
// Convert output to hexadecimal string
string result = to_hex(hashed); //length is required.
// Print result
print(result);
}
although there is no need to pass length here because we already know the length of sha256, but you take it as a params in to_hex() action. One more thing this series is nice to understand EOS tables.
Thanks Man
For example, remove '.lamingtonignore' and move everything over to .lamingtonrc
.
It'd be great to upgrade these examples to use the latest CDT so when people copy / paste into their latest environments they don't get build errors.
I'd be happy to help if that's a thing you're interested in doing.
First of all, great guide; it's really helpful!
My question is how do you convert a checksum256
type to a string
? I understand you can print it to the console with printhex(&sum, sizeof(sum))
but how would you do something like std::string str = sum
? I'm stuck here. Thanks
(excuse my lack of C++ knowledge)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.