Commit f8e48c7f authored by Eugene Mishura's avatar Eugene Mishura

address plus correct entry point for config

parent 120200f5
Pipeline #116009076 passed with stage
in 2 minutes and 42 seconds
......@@ -97,5 +97,8 @@ let main (param, s : entry_points * allowances) : (operation list) * allowances
([] : operation list), new_s
| Register_with_fa2 fa2 ->
let op = create_register_hook_op fa2 [Allowances_config Current.self_address] in
let c : fa2_allowances_config_entry_points contract =
Operation.get_entrypoint "%allowances" Current.self_address in
let config_address = Current.address c in
let op = create_register_hook_op fa2 [Allowances_config config_address] in
[op], s
......@@ -102,5 +102,8 @@ let main (param, s : entry_points * operators) : (operation list) * operators =
([] : operation list), s
| Register_with_fa2 fa2 ->
let op = create_register_hook_op fa2 [Operators_config Current.self_address] in
let c : fa2_operators_config_entry_points contract =
Operation.get_entrypoint "%operators" Current.self_address in
let config_address = Current.address c in
let op = create_register_hook_op fa2 [Operators_config config_address] in
[op], s
......@@ -47,5 +47,8 @@ let main (param, s : entry_points * whitelist) : (operation list) * whitelist =
([] : operation list), s
| Register_with_fa2 fa2 ->
let op = create_register_hook_op fa2 [Whitelist_config Current.self_address] in
let c : fa2_whitelist_config_entry_points contract =
Operation.get_entrypoint "%whitelist" Current.self_address in
let config_address = Current.address c in
let op = create_register_hook_op fa2 [Whitelist_config config_address] in
[op], s
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment