Bitcoin Forum
July 06, 2024, 07:29:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Re: Choosing language for blockchain on: December 20, 2017, 10:12:31 AM
Well I am going to vote for C# because it has much more features than C++.
So I am here to explain you some reasons why C# will be a good option to use for blockchain creation.
1. C# is a merger of C and C++ and a new language with many modified features.
2. Having rich function library than others.
3. Very closely related to C++ and JAVA, so it can be easy to understand by both type of developers.
Hello!
I like C#, but what about crossplatform open source crypto, network and other libraries for C#?
What about crossplatform products creating with C#? And development with linux?
Thanks!
2  Local / Кодеры / Re: Контракт не принимает эфир on: November 10, 2017, 08:49:30 AM
А вы заранее фиксированную эмиссию токенов решили сделать?
Да
3  Local / Кодеры / Re: Контракт не принимает эфир on: November 08, 2017, 09:44:39 AM
Товарищи, всем спасибо за ответы! Проблема была в том, что на адрес краудсейл-контракта надо было перевести токены. Т.е. надо было, чтобы именно адрес краудсейл-контракта имел токены, а не адрес, с которого контракт деплоился... Я как-то умудрился упустить этот момент!... (( Надеюсь, теперь это кому-то тоже поможет!
Еще раз всем спасибо!!! )
4  Alternate cryptocurrencies / Altcoin Discussion / Coders! Help, please - Ethereum smart-contract does not accept payments... on: October 26, 2017, 01:41:33 PM
Hello!

I'm studing Ethereum and its smart contracts now. It's about tokens and crowdsale.
I have deployed via Etherium Wallet 0.9.2 two example smart-contracts (from here: https://ethereum.org/token#the-code and here: https://ethereum.org/crowdsale#the-code) in private network succesfully (mining is on).
But if i try to send Ether from main address to crowdsale-contract address i see this error: "It seems this transaction will fail. If you submit it, it may consume all the gas you provide."
Also in transaction confirmation window i see this message: "Estimated fee consumption: The contract won't allow this transaction to be executed".
If I ignore this messages and make confirmation, than window closes and nothing happens. Balance is same as before and no tokens received.

Could You help me with the answer what i do wrong?
Thanks a lot!
5  Local / Кодеры / Re: Контракт не принимает эфир on: October 26, 2017, 11:33:45 AM
может в контракте нет ни одной payable функции? нужно сделать.
есть payable fallback:
function () payable {
        require(!crowdsaleClosed);
        uint amount = msg.value;
        balanceOf[msg.sender] += amount;
        amountRaised += amount;
        tokenReward.transfer(msg.sender, amount / price);
        FundTransfer(msg.sender, amount, true);
}
Это прямо из примера (копипейст)...

А может быть проблема как-то связана с тем, что я все делаю на одном кошельке? И деплою, и пытаюсь с него же перевести эфир на адрес контракта? В теории это не должно быть проблемой, но я уже просто не понимаю куда смотреть ((
6  Local / Кодеры / Re: Контракт не принимает эфир on: October 26, 2017, 11:13:10 AM
...если у вас контракт owned то его надо с параметром хозяина деплоить
Спасибо за ответ! Но нет, контракт не owned...

кстати, актуальный код с ethereum.org/crowdsale не компилируется - ругается на "event GoalReached(address beneficiary, uint amountRaised);", но поскольку это всего лишь описание я его меняю на "event GoalReached(address _beneficiary, uint _amountRaised);" и все ок. Но это так, мелочь...
7  Local / Кодеры / Контракт не принимает эфир on: October 25, 2017, 03:05:56 PM
Добрый день!

Изучаю эфириум и его смарт-контракты.
Пробую в тестовой приватной сети сделать смарт-контракты токенов и краудсейла.
Беру код вот отсюда https://ethereum.org/token#the-code и отсюда https://ethereum.org/crowdsale#the-code
Деплою через кошелек Эфириума (майнинг при этом работает, блоки собираются).
После деплоя контракта токенов и краудсейла пытаюсь с основного кошелька отправить эфир на адрес краудсейл-контракта, но получаю ошибку: It seems this transaction will fail. If you submit it, it may consume all the gas you provide.
Так же в окне подтверждения пишется "Estimated fee consumption: The contract won't allow this transaction to be executed".
Если ошибку проигнорировать, и подтвердить транзакцию, то ничего не происходит. Баланс не уменьшается, токены не зачисляются.
Кошелек Ethereum Wallet 0.9.2

Могли бы вы подсказать, почему так происходит? Где может быть ошибка?
Спасибо!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!