Skip to content

Commit

Permalink
Merge e509dbe into 7ca2010
Browse files Browse the repository at this point in the history
  • Loading branch information
debris committed Apr 4, 2018
2 parents 7ca2010 + e509dbe commit 0369d5b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion derive/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "ethabi-derive"
version = "5.1.1"
version = "5.1.2"
authors = ["Parity Technologies <admin@parity.io>"]
homepage = "https://github.com/paritytech/ethabi"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion derive/src/lib.rs
Expand Up @@ -300,7 +300,7 @@ fn from_token(kind: &ParamType, token: &quote::Tokens) -> quote::Tokens {
}
},
ParamType::FixedBytes(size) => {
let size: syn::Ident = format!("{}", size).into();
let size: syn::Index = size.into();
quote! {
{
let mut result = [0u8; #size];
Expand Down
6 changes: 6 additions & 0 deletions res/urlhint.abi
@@ -0,0 +1,6 @@
[
{"constant":false,"inputs":[{"name":"_content","type":"bytes32"},{"name":"_url","type":"string"}],"name":"hintURL","outputs":[],"type":"function"},
{"constant":false,"inputs":[{"name":"_content","type":"bytes32"},{"name":"_accountSlashRepo","type":"string"},{"name":"_commit","type":"bytes20"}],"name":"hint","outputs":[],"type":"function"},
{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"entries","outputs":[{"name":"accountSlashRepo","type":"string"},{"name":"commit","type":"bytes20"},{"name":"owner","type":"address"}],"type":"function"},
{"constant":false,"inputs":[{"name":"_content","type":"bytes32"}],"name":"unhint","outputs":[],"type":"function"}
]
1 change: 1 addition & 0 deletions tests/src/lib.rs
Expand Up @@ -15,6 +15,7 @@ use_contract!(eip20, "Eip20", "../res/eip20.abi");
use_contract!(constructor, "Constructor", "../res/con.abi");
use_contract!(validators, "Validators", "../res/Validators.abi");
use_contract!(operations, "Operations", "../res/Operations.abi");
use_contract!(urlhint, "UrlHint", "../res/urlhint.abi");

#[cfg(test)]
mod tests {
Expand Down

0 comments on commit 0369d5b

Please sign in to comment.