These are chat archives for Nethereum/Nethereum

18th
Aug 2017
Juan Blanco
@juanfranblanco
Aug 18 2017 07:59
@kaista82_twitter if you like dapper I have a generic repository here https://github.com/juanfranblanco/CQS.Net
but petapoco is faster as I remember (a while ago)
kai
@kaista82_twitter
Aug 18 2017 08:39
Never used dapper but will look does it have one to many etc?
I like the attribute style
In peta
Tablename pk then if needed column based attribute
Not sure how dapper does ill read now
kai
@kaista82_twitter
Aug 18 2017 08:40
Oh nice
Juan Blanco
@juanfranblanco
Aug 18 2017 08:40
i have not used this for a while (i might have even created that myself :D)
kai
@kaista82_twitter
Aug 18 2017 08:40
Lol
You have lots of repos
kai
@kaista82_twitter
Aug 18 2017 08:50
oh you did lol
oh dapper just seems to put extension methods onto the sqlconnection object
Juan Blanco
@juanfranblanco
Aug 18 2017 09:26
I need to refresh my memory on all that :D
kai
@kaista82_twitter
Aug 18 2017 09:26
I think they are extensions to the IDbConnection types
for the mapping which is cool
just peta has things like Sql for building queries etc which are so useful
Juan Blanco
@juanfranblanco
Aug 18 2017 09:27
yes very nice for the view side
or complex queries
Theoshan
@airgonaut22_twitter
Aug 18 2017 11:24
@kaista82_twitter I appreciate all your help. managed to get the reference issue resolved.
I have hit another wall with regards to "intrinsic gas too low" whichg deals with Eth.DeployContract.SendRequestAsync
Theoshan
@airgonaut22_twitter
Aug 18 2017 11:36
How do I change the gas in the accounts provided in the testnet?
kai
@kaista82_twitter
Aug 18 2017 12:18
on a transfer?
@airgonaut22_twitter oh good, was it what I thought it was? just looking in wrong place?
@airgonaut22_twitter intrinsic gas too low, what are you specifying in the overload for gas ?
Theoshan
@airgonaut22_twitter
Aug 18 2017 12:26
I had to play around with using web3 and web3Geth... You led me onto the right track.
This is the line im using : var transactionHash = await web3.Eth.DeployContract.SendRequestAsync(abi, byteCode, senderAddress, multiplier);
Where I passed the parameter multiplier , didnt specify an overload for gas
kai
@kaista82_twitter
Aug 18 2017 12:34
overload.jpg
you dont see this overload?
I am seeing 11 overloads
Theoshan
@airgonaut22_twitter
Aug 18 2017 12:44
Any suggestion what value the gas should be?
kai
@kaista82_twitter
Aug 18 2017 12:45
21000 plus 68gas per byte (if its all 1s)
Atleast thats what ive read
Theoshan
@airgonaut22_twitter
Aug 18 2017 12:47
Its strange that when I ran the tutorial code in visual code it never had that error... What I am trying to do now is integrate the code into into an asp.net website to see if i can make it more user friendly
kai
@kaista82_twitter
Aug 18 2017 12:50
are you using the exact same library or one pcl and one normal one
I say that as the PCL has everything in one the others are separated
im not sure how much they differ
a simple default gas price could cause it if that was the case
Juan Blanco
@juanfranblanco
Aug 18 2017 12:51
only difference is the IPC
that is not included
kai
@kaista82_twitter
Aug 18 2017 12:52
there you go, did you send exactly the same contract on both?
Juan Blanco
@juanfranblanco
Aug 18 2017 12:52
portable is just for compatibility purposes
Theoshan
@airgonaut22_twitter
Aug 18 2017 12:55
Yes they were exactly the same contract.... I was just copy/pasting code from the tutorial i was able to run in visual code into visual studio.. Though visual code uses the Solidity and visual studio is suing the nethereum web3 and geth
kai
@kaista82_twitter
Aug 18 2017 12:55
how do you mean code uses solidity
im confused
Theoshan
@airgonaut22_twitter
Aug 18 2017 12:56
image.png
kai
@kaista82_twitter
Aug 18 2017 12:56
oh but other than that you're using nethereum with web3 etc etc
so one has solidity extension as an extra
just stick 100000 in gas and see if it fires hehe
kai
@kaista82_twitter
Aug 18 2017 13:01
erm Juan, how do I deploy a contract without using a managed account? i want to offline sign it
Theoshan
@airgonaut22_twitter
Aug 18 2017 13:04
Sorted ! :smile: Thanks @kaista82_twitter
kai
@kaista82_twitter
Aug 18 2017 13:05
;)
great
enjoy
Juan Blanco
@juanfranblanco
Aug 18 2017 14:30
@kaista82_twitter just use Account instead
Account("privatekey")
everything is the same
you can load your private key using key storage
kai
@kaista82_twitter
Aug 18 2017 14:31
oh yeah thats no probs so start up a new web3 instance with the account as a param
then fire away as usual
Juan Blanco
@juanfranblanco
Aug 18 2017 14:32
yes
kai
@kaista82_twitter
Aug 18 2017 14:32
nice one
Juan Blanco
@juanfranblanco
Aug 18 2017 14:32
everything else is taken care of
but you can if you want create your own transaction manager
kai
@kaista82_twitter
Aug 18 2017 14:34
yeah its much easier just to get an account object via one of the methods
from private key, or loaded from keystore or whatever
Juan Blanco
@juanfranblanco
Aug 18 2017 14:34
yes
I did not add the loadfromfile when is not .net451
as this is different on other devices
kai
@kaista82_twitter
Aug 18 2017 14:49
yeah thats fine, I understand the decision, I dont use load from file anymore i did initially to learn
kai
@kaista82_twitter
Aug 18 2017 15:02
we're nearly free juan, an hour left
nandos and gaming here I come!
Juan Blanco
@juanfranblanco
Aug 18 2017 15:04
ha ha im in spain at the moment
so i should be finished already :D
kai
@kaista82_twitter
Aug 18 2017 15:05
oh very nice, holidays?
Juan Blanco
@juanfranblanco
Aug 18 2017 15:05
no just working from here whilst the kids go to the swimming pool
kai
@kaista82_twitter
Aug 18 2017 15:06
im confused, so you're not on holiday or holiday but working
Juan Blanco
@juanfranblanco
Aug 18 2017 15:06
not holiday
kai
@kaista82_twitter
Aug 18 2017 15:06
i thought you lived in the uk
Juan Blanco
@juanfranblanco
Aug 18 2017 15:06
im actually on holiday next week when i drive back to the uk
just working remotely at the moment :D
kai
@kaista82_twitter
Aug 18 2017 15:07
oh cool
hopefully you will get some pool time soon
Juan Blanco
@juanfranblanco
Aug 18 2017 15:11
ha ha actually by the time i finish cannot be bothered
this is like when you work away and back go back to the hotel
and never use the gym, swimming pool, etc
kai
@kaista82_twitter
Aug 18 2017 15:12
yeah i hate working away
i only travel one day a week thankfully
Juan Blanco
@juanfranblanco
Aug 18 2017 15:12
that is awesome
kai
@kaista82_twitter
Aug 18 2017 15:12
yes i am lucky but i work for 2 clients mainly for my 9-5
part of deal is me being at my own office