Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build/prep for release #44

Merged
merged 6 commits into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ To package the web happ:
npm run package
```

You'll have the `grant-funding.webhapp` in `workdir`. This is what you should distribute so that the Holochain Launcher can install it.
You will also have its subcomponent `grant-funding.happ` in the same folder`.
You'll have the `distributed-funds.webhapp` in `workdir`. This is what you should distribute so that the Holochain Launcher can install it.
You will also have its subcomponent `distributed-funds.happ` in the same folder`.

## Documentation

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use grants_integrity::Score;
use grants_integrity::*;
use hdk::prelude::*;
#[hdk_extern]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ pub fn validate_create_link_agent_to_evm_wallet(
e
)))
})?;

if !Address::parse_checksummed(&evm_address, None).is_ok() {
if Address::parse_checksummed(evm_address, None).is_err() {
return Ok(ValidateCallbackResult::Invalid(
"Can only link to valid evm address".to_string(),
));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub fn validate_create_link_evaluator_to_applications(
.ok_or(wasm_error!(WasmErrorInner::Guest(String::from(
"Linked action must reference an entry"
))))?;
if !AgentPubKey::try_from(base_address).is_ok() {
if AgentPubKey::try_from(base_address).is_err() {
return Ok(ValidateCallbackResult::Invalid(
"Can only evaluator from an AgentPubKey".to_string(),
));
Expand Down Expand Up @@ -58,7 +58,7 @@ pub fn validate_create_link_application_to_evaluators(
.ok_or(wasm_error!(WasmErrorInner::Guest(String::from(
"Linked action must reference an entry"
))))?;
if !AgentPubKey::try_from(target_address).is_ok() {
if AgentPubKey::try_from(target_address).is_err() {
return Ok(ValidateCallbackResult::Invalid(
"Can only link application to valid evaluator AgentPubKey".to_string(),
));
Expand Down
Loading
Loading