Giter Site home page Giter Site logo

mitchpierias / advanced-eos-examples Goto Github PK

View Code? Open in Web Editor NEW
163.0 19.0 46.0 330 KB

EOS Smart Contract Development Examples

License: MIT License

C++ 63.45% TypeScript 36.55%
eos eosio eos-contracts eos-blockchain eos-tutorials blockchain blockchain-demos blockchain-demo distributed-ledger decentralized-applications

advanced-eos-examples's Issues

Upgrade to latest CDT

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.

Doesn't pass the required parameter in to_hex() action.

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

checksum256 to string?

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.