testing/cross_backend/role_grant_cross_helpers.ts view source
(fixture: TestFixtureBase, recipient: TestAccount, options?: RoleGrantFixtureOptions): Promise<string> import {create_active_role_grant} from '@fuzdev/fuz_app/testing/cross_backend/role_grant_cross_helpers.js'; Materialize an active global grant of role on recipient through a fresh
keeper offer and the recipient's accept, returning its role_grant_id — the
handle role_grant_revoke keys on. Idempotent on a grant the account
already holds: the accept returns that grant's id.
fixture
the per-test fixture
recipient
the account that accepts the offer
options
the role and the RPC path
{}returns
Promise<string>
the active grant's id