Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 24 16:52

    juanfranblanco on master

    Ignore old block to retrieve er… (compare)

  • Jan 24 13:08

    juanfranblanco on master

    Moving up a version 3.6 (compare)

  • Jan 24 11:35

    juanfranblanco on master

    Estimation check revert message (compare)

  • Jan 17 18:01

    juanfranblanco on master

    Coge generator javascript and n… (compare)

  • Jan 17 12:55

    juanfranblanco on master

    Internal types ABI and Code gen… (compare)

  • Jan 16 14:34

    juanfranblanco on master

    Update ABIDeserialiser.cs For … Merge pull request #616 from En… (compare)

  • Jan 09 12:01

    juanfranblanco on master

    Limiting Quorum privateFor to u… When packing encoding for Array… Merge branch 'master' of https:… (compare)

  • Jan 07 13:46

    juanfranblanco on master

    adds documentation for GSN Update README.md Merge pull request #612 from aq… (compare)

  • Jan 02 15:24

    juanfranblanco on master

    #610 ensure prefix has been rem… Merge branch 'master' of https:… (compare)

  • Jan 02 09:58

    juanfranblanco on master

    adds GSN support updates transaction manager, in… updates objects' visibility and 2 more (compare)

  • Dec 31 2019 10:39

    juanfranblanco on 3.5.0

    (compare)

  • Dec 31 2019 10:12

    juanfranblanco on master

    Release 3.5 Merge branch 'master' of https:… (compare)

  • Dec 31 2019 09:27

    juanfranblanco on master

    Update README.md (compare)

  • Dec 31 2019 09:18

    juanfranblanco on master

    Update version.txt Merge branch 'master' of https:… (compare)

  • Dec 31 2019 09:16

    juanfranblanco on master

    Update README.md (compare)

  • Dec 31 2019 09:12

    juanfranblanco on master

    Create playground.png (compare)

  • Dec 31 2019 09:04

    juanfranblanco on master

    New version of parity (compare)

  • Dec 31 2019 08:50

    juanfranblanco on master

    Support for parity clique mixha… (compare)

  • Dec 31 2019 07:07

    juanfranblanco on master

    update api method for shh versi… - Remove deprecated method shh… add rpc service api shh_addPriv… and 16 more (compare)

  • Dec 30 2019 18:51

    juanfranblanco on master

    Update quorum tests (compare)

MyOnAsSalat
@MyOnAsSalat
nothing happen after i've started it
image.png
atlassanjay
@atlassanjay
Does anyone know if connection to TRON will work with NEthereum
I want to call a smart contract method on the TRON Chain, but current am having to use JSInterop :|. It would be nice if i could use Blazor Client + Nethereum
Juan Blanco
@juanfranblanco
@MyOnAsSalat I cannot see any issue in your code, maybe some error has been thrown by your solidity code. Try estimating it, it will throw an error if not valid (ran out of gas)
Juan Blanco
@juanfranblanco
@atlassanjay if they have not changed the RPC / IPC api as Ethereum should not be an issue. I have not tried myself. Let me know what you find.
MyOnAsSalat
@MyOnAsSalat
@juanfranblanco is there way to use WEB3JS in C#?
Juan Blanco
@juanfranblanco
@MyOnAsSalat why? Nethereum provides all the functionality of Web3js in C#
what is your use case / need
MyOnAsSalat
@MyOnAsSalat
@juanfranblanco i know, but it doesn't work
i gues there should be almost failed transaction
but there is nothing(
Dave Whiffin
@Dave-Whiffin
@MyOnAsSalat Is it still the joinTo function you are struggling to make work?
MyOnAsSalat
@MyOnAsSalat
@Dave-Whiffin yes
Dave Whiffin
@Dave-Whiffin
@MyOnAsSalat Have you tried creating a much simpler Solidity function which takes the same parameters and simply emits an event from them? (create a solidity event that echos the parameters you need). The theory is to ensure the contract is receiving the parameters you expect? I suspect at the moment the contract is throwing an error.
MyOnAsSalat
@MyOnAsSalat
@Dave-Whiffin I didn't develop this contract it is from another developer, so i don't know how even code in solidity
Dave Whiffin
@Dave-Whiffin
@MyOnAsSalat Were you given the abi for the contract? Is it publicly available? Did you code generate the C# from the abi or hand code?
Dave Whiffin
@Dave-Whiffin
@Dave-Whiffin If you able to share the abi I can give you some sample code.
Juan Blanco
@juanfranblanco
@MyOnAsSalat if you provide the full contract we might be able to test it
Dave Whiffin
@Dave-Whiffin
@juanfranblanco great minds...!
Juan Blanco
@juanfranblanco
:)
it might be failing in one of the requires, making a call / query might help validating if that is the issue.
Juan Blanco
@juanfranblanco
@MyOnAsSalat can you make a query and wrapped it in a try / catch with your function to see if you get an error on the require
this might help ^^
just trying to validate if it fails on
require(msg.value == prices[0],"wrong ether amount");
        require(nodes[msg.sender].level == 0, "already connected");
MyOnAsSalat
@MyOnAsSalat
full contract
one note, in this code i didn't used ABI
i'am trying doing this with infura and maybe there is problem
Dave Whiffin
@Dave-Whiffin
@MyOnAsSalat I have some example code ready for you. I'll post a link soon.
Dave Whiffin
@Dave-Whiffin

@MyOnAsSalat Below is a link to a gist. It contains sample code I used to test a modified version of the contract. I used the nethereum test chain.

1 - I altered the Solidity code to prevent transferring eth, which I didn't want to do whilst testing.
2 - I compiled the Solidity code to create the abi and byte code (using the Solidity VS Code extension).
3 - I code generated the C# API from the abi and byte code (see Abi Code Gen on the playground or http://docs.nethereum.com/en/latest/nethereum-code-generation/)
4 - Created a simple C# program to demonstrate how to invoke and query the contract.

https://gist.github.com/Dave-Whiffin/45c648f2b6b393479a8a6ba0e1553d0e

I hope it helps

MyOnAsSalat
@MyOnAsSalat
@Dave-Whiffin OMG YES IT WORKS!
THANK YOU very much, perfect code example with comments and explanation
Juan Blanco
@juanfranblanco
@Dave-Whiffin can you create an example for the playground on how to check for revert errors? obviously not using the example above as we dont promote ponzis :)
Kenji
@krouspy
Hello, does Nethereum provide a way to verify the block hash ?
Otherwise, i'm trying to do it on my own following this post: https://ethereum.stackexchange.com/questions/67055/block-header-hash-verification
The thing here is that RLP doesn't return the right output in C#
Here's the code
var block = await _web3.Eth.Blocks.GetBlockWithTransactionsHashesByNumber.SendRequestAsync(400000);
var blockInfo = _FormatBlockInfo(block);

var blockHeader = blockInfo
        .GetType()
        .GetProperties()
        .Select(p => {
            object value = p.GetValue(blockInfo, null);
            Console.WriteLine(value);
            return value == null ? null : value.ToString().HexToByteArray();
       })
       .ToArray();

var rlp = "0x" + RLP.EncodeList(blockHeader).ToHex();
// wrong output
In _FormatBlockInfo(), I retrieve the data needed and I end up with the right block header in right order like in the link above but the rlp output doesn't match the one from the link
Apologies for the late response I thought I have answered already
Kenji
@krouspy
@juanfranblanco no problem for the delay :) and thanks it works!
Juan Blanco
@juanfranblanco
great :)
Kenji
@krouspy
Hello, I'm trying to do the same as above with Quorum
We use the Istanbul consensus so the way the block hash is calculated varies from Ethereum's ethash
ethereum/EIPs#650
Any suggestion ?
Juan Blanco
@juanfranblanco
if you see the notes
from the extra data it is necessary to:

"Block hash calculation
While calculating block hash, we need to exclude committed seals since that data is dynamic between different validators. Therefore, we make CommittedSeal an empty array while calculating the hash. The calculation is:

Header: Same as ethash header only with a different extraData.
extraData: vanity | RLP(IstanbulExtra), where in the IstanbulExtra, CommittedSeal is an empty array."

Kenji
@krouspy
Don't worry about the delay :)
Yeah that's what I was looking at
I put that in stand by for now since I currently don't have access to some info
Thanks @juanfranblanco
Juan Blanco
@juanfranblanco
@krouspy let me know how it goes, and please make a pull if you get it sorted
Kenji
@krouspy
@juanfranblanco Yeah sure!