sdk/js: Add extraGrpcOpts to getSignedVAA()

Change-Id: Id756455ddc9a2d98d001bad6b8f7ff05392f22d4
This commit is contained in:
Stan Drozd 2021-10-04 15:48:44 +02:00 committed by Evan Gray
parent eb4f6e57c8
commit 70596937e0
1 changed files with 3 additions and 2 deletions

View File

@ -8,9 +8,10 @@ export async function getSignedVAA(
host: string,
emitterChain: ChainId,
emitterAddress: string,
sequence: string
sequence: string,
extraGrpcOpts = {}
) {
const rpc = new GrpcWebImpl(host, {});
const rpc = new GrpcWebImpl(host, extraGrpcOpts);
const api = new PublicRPCServiceClientImpl(rpc);
return await api.GetSignedVAA({
messageId: {