<
 
 
 
 
×
>
hide You are viewing an archived web page, collected at the request of Ethereum Foundation using Archive-It. This page was captured on 19:41:09 Jun 05, 2021 , and is part of the Community collection. The information on this web page may be out of date. See All versions of this archived page. Loading media information

Solidity From JavaScript

robmyersrobmyers Member Posts: 65 ✭✭✭
Solidity looks amazing.

I know it's early days, but with Solidity and the new Serpent I've a couple of questions:

1. I understand the calling conventions (function identified by number) but there's nothing for that in the JavaScript API yet is there? I can format up calls but I assume there'll be something better using the ABI information coming along.

2. Both Solidity and Serpent have named, structured storage (state in Solidity, data in Serpent). How is that accessed from JavaScript? With the compiler handling the layout of memory, I can get the position of fields in storage from the compiled code but that's a hack. Some of the contracts have functions that look suspiciously like accessors.

Comments

Sign In or Register to comment.