We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
derivePostedVaaKey
1 parent 36c430c commit e0edbd3Copy full SHA for e0edbd3
solver/src/utils/placeInitialOffer.ts
@@ -24,8 +24,8 @@ function getPlaceInitialOfferAccounts(
24
const vaa = deserialize("Uint8Array", fastVaaBytes);
25
const doubleHash = keccak256(vaa.hash);
26
const fastVaaAccount = coreUtils.derivePostedVaaKey(
27
- vaa.hash,
28
- matchingEngine.coreBridgeProgramId().toBuffer(),
+ matchingEngine.coreBridgeProgramId(),
+ Buffer.from(vaa.hash),
29
);
30
const auction = matchingEngine.auctionAddress(doubleHash);
31
const fromRouterEndpoint = matchingEngine.routerEndpointAddress(fromChain as ChainId);
0 commit comments