Giter VIP home page Giter VIP logo

ton-labs-contracts's People

Contributors

a-zorina avatar asnov avatar azhogin avatar borisi avatar bvscd avatar c11online avatar cleanunicorn avatar emelyanenkok avatar futurizt avatar igorkoval avatar joydark avatar keshoid avatar mikhailushakoff avatar mskvortsov avatar silkovalexander avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ton-labs-contracts's Issues

Wrong readme for C++ nonfungible tokens contracts

Hi! Readme in C++ tokens-nonfungible folder is just a copy from fungible one. Can it be changed? There are not so much information about NFT in Free TON community, so every line of text is gold

Possible some weird issue with allBalance in MultisigWallet smart contract

"allBalance" - use true (and value = 0) if you need to transfer all contract funds. Don't use value equal to contract balance to send all remaining tokens, such transaction will fail because before the value is subtracted from balance, gas and storage fees are consumed and the remaining balance will be less than value.

This documentation has contradiction with solidity code, where min value set in 1e6

https://github.com/tonlabs/ton-labs-contracts/blob/bc240d0874dec0fff1d9f7a8b74530c7cdb117c5/solidity/safemultisig/SafeMultisigWallet.sol#L242

The checking that mentioned above won't be passed.

Also here -
https://github.com/tonlabs/ton-labs-contracts/blob/bc240d0874dec0fff1d9f7a8b74530c7cdb117c5/solidity/safemultisig/SafeMultisigWallet.sol#L189

We see that "realValue" won't equal to the balance because gas will continue to be spending due to later the code will be invoked.

The question is appeared because we couldn't be able to send all balance due to insufficient balance error. Even if we bypass limitation when set initial value as 1e6 for the passing checking with min value, we will have error "Account has insufficient balance for the requested operation. Send some value to account balance"

setcodemultisig compile error

Hello!
I trying to compile setcodemultisig contract and getting a lot of warning and 3 errors.
I have fixed warnings but i don't know what doing with following errors:

Error: Different number of components on the left hand side (2) than on the right hand side (1).
   --> SetcodeMultisigWallet.sol:209:9:
    |
209 |         (bool exists, uint8 index) = m_custodians.fetch(senderKey);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Error: Type optional(uint8) is not implicitly convertible to expected type bool.
   --> SetcodeMultisigWallet.sol:209:9:
    |
209 |         (bool exists, uint8 index) = m_custodians.fetch(senderKey);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Error: Member "transLT" not found or not visible after argument-dependent lookup in tvm.
   --> SetcodeMultisigWallet.sol:216:39:
    |
216 |         return (uint64(now) << 32) | (tvm.transLT() & 0xFFFFFFFF);
    |                                       ^^^^^^^^^^^

Somebody know how handle with it?
May be i need use other compiler ?
Now i use compiler with tondev package

6.4. Minting new tokens

6.4. Minting new tokens

./tonos-cli call <root_address> mint '{"tokens":""}' --sign "<seed_phrase>"

need .abi file

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.