File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ impl TapManager {
52
52
. unwrap_or ( false )
53
53
{
54
54
return Err ( QueryError :: Other ( anyhow:: Error :: msg ( format ! (
55
- "Receipt's allocation ID ({}) is not eligible for this indexer" ,
55
+ "Receipt allocation ID `{}` is not eligible for this indexer" ,
56
56
allocation_id
57
57
) ) ) ) ;
58
58
}
@@ -67,11 +67,15 @@ impl TapManager {
67
67
. escrow_accounts
68
68
. value ( )
69
69
. await
70
- . map ( |accounts| accounts. contains_key ( & receipt_signer) )
70
+ . map ( |accounts| {
71
+ accounts
72
+ . get ( & receipt_signer)
73
+ . map_or ( false , |balance| balance > & U256 :: zero ( ) )
74
+ } )
71
75
. unwrap_or ( false )
72
76
{
73
77
return Err ( QueryError :: Other ( anyhow:: Error :: msg ( format ! (
74
- "Receipt's sender ({}) is not eligible for this indexer" ,
78
+ "Receipt sender `{}` is not eligible for this indexer" ,
75
79
receipt_signer
76
80
) ) ) ) ;
77
81
}
You can’t perform that action at this time.
0 commit comments