Merge pull request #178 from aeternity/PT-158904718-aens-update-sophia

changed type of client ttl to int option
This commit is contained in:
skkw 2019-11-18 18:39:54 +01:00 committed by GitHub
commit c2c8e297ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
{erl_opts, [debug_info]}. {erl_opts, [debug_info]}.
{deps, [ {aebytecode, {git, "https://github.com/aeternity/aebytecode.git", {ref,"38f4f0e"}}} {deps, [ {aebytecode, {git, "https://github.com/aeternity/aebytecode.git", {ref,"b040dcc"}}}
, {getopt, "1.0.1"} , {getopt, "1.0.1"}
, {eblake2, "1.0.0"} , {eblake2, "1.0.0"}
, {jsx, {git, "https://github.com/talentdeficit/jsx.git", , {jsx, {git, "https://github.com/talentdeficit/jsx.git",

View File

@ -1,7 +1,7 @@
{"1.1.0", {"1.1.0",
[{<<"aebytecode">>, [{<<"aebytecode">>,
{git,"https://github.com/aeternity/aebytecode.git", {git,"https://github.com/aeternity/aebytecode.git",
{ref,"38f4f0ecd75db592f596b9687c37945d4fc807d7"}}, {ref,"b040dccdefb0713198986264bc2d19d3fb84398d"}},
0}, 0},
{<<"aeserialization">>, {<<"aeserialization">>,
{git,"https://github.com/aeternity/aeserialization.git", {git,"https://github.com/aeternity/aeserialization.git",

View File

@ -469,7 +469,7 @@ global_env() ->
{"claim", SignFun([Address, String, Int, Int], Unit)}, {"claim", SignFun([Address, String, Int, Int], Unit)},
{"transfer", SignFun([Address, Address, String], Unit)}, {"transfer", SignFun([Address, Address, String], Unit)},
{"revoke", SignFun([Address, String], Unit)}, {"revoke", SignFun([Address, String], Unit)},
{"update", SignFun([Address, String, Option(TTL), Option(TTL), Option(Map(String, Pointee))], Unit)}]) {"update", SignFun([Address, String, Option(TTL), Option(Int), Option(Map(String, Pointee))], Unit)}])
, types = MkDefs([{"pointee", 0}]) }, , types = MkDefs([{"pointee", 0}]) },
MapScope = #scope MapScope = #scope

View File

@ -37,14 +37,14 @@ contract AENSTest =
stateful entrypoint update(owner : address, stateful entrypoint update(owner : address,
name : string, name : string,
ttl : option(Chain.ttl), ttl : option(Chain.ttl),
client_ttl : option(Chain.ttl), client_ttl : option(int),
pointers : option(map(string, AENS.pointee))) : unit = pointers : option(map(string, AENS.pointee))) : unit =
AENS.update(owner, name, ttl, client_ttl, pointers) AENS.update(owner, name, ttl, client_ttl, pointers)
stateful entrypoint signedUpdate(owner : address, stateful entrypoint signedUpdate(owner : address,
name : string, name : string,
ttl : option(Chain.ttl), ttl : option(Chain.ttl),
client_ttl : option(Chain.ttl), client_ttl : option(int),
pointers : option(map(string, AENS.pointee)), pointers : option(map(string, AENS.pointee)),
sign : signature) : unit = sign : signature) : unit =
AENS.update(owner, name, ttl, client_ttl, pointers, signature = sign) AENS.update(owner, name, ttl, client_ttl, pointers, signature = sign)