rubbbiconnnnnn
This commit is contained in:
+2
-6
@@ -11,9 +11,5 @@ contract Names =
|
||||
stateful entrypoint register(name: string, addr: Rubicon): unit =
|
||||
put(state{[name] = addr})
|
||||
|
||||
stateful entrypoint lookup(name: string): option(list(rbx_tuple)) =
|
||||
switch(Map.lookup(name, state))
|
||||
Some(addr) =>
|
||||
Some(addr.lookup())
|
||||
None =>
|
||||
None
|
||||
stateful entrypoint lookup(name: string): list(rbx_tuple) =
|
||||
Map.lookup(name, state)
|
||||
|
||||
Reference in New Issue
Block a user