Skip to content

Commit

Permalink
GH-1523 bls_public_key has explicit constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Sep 1, 2023
1 parent 48a268b commit f24626a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/webassembly/privileged.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ namespace eosio { namespace chain { namespace webassembly {
f_weight_sum += f.fweight;
std::optional<bls12_381::g1> pk = bls12_381::g1::fromJacobianBytesLE(f.public_key_g1_jacobian);
EOS_ASSERT( pk, wasm_execution_error, "Invalid public key for: ${d}", ("d", f.description) );
finset.finalizers.push_back(finalizer_authority{.description = std::move(f.description), .fweight = f.fweight, .public_key{*pk}});
finset.finalizers.push_back(finalizer_authority{.description = std::move(f.description), .fweight = f.fweight, .public_key{fc::crypto::blslib::bls_public_key{*pk}}});
unique_finalizer_keys.insert(finset.finalizers.back().public_key);
}

Expand Down

0 comments on commit f24626a

Please sign in to comment.