size change
This commit is contained in:
parent
503ce38e39
commit
699320e056
|
@ -80,7 +80,7 @@ pub struct Sale {
|
||||||
|
|
||||||
impl Sale {
|
impl Sale {
|
||||||
pub const MAXIMUM_SIZE: usize =
|
pub const MAXIMUM_SIZE: usize =
|
||||||
32 + 2 + 1 + (8 + 8) + 32 + 1 + 1 + 128 * AcceptedToken::MAXIMUM_SIZE + 32 + 1;
|
32 + 2 + 1 + (8 + 8) + 32 + 1 + 1 + 128 * (AcceptedToken::MAXIMUM_SIZE + 8 * 3) + 32 + 1;
|
||||||
|
|
||||||
pub fn parse_sale_init(&mut self, payload: &[u8], contributor: &Pubkey) -> Result<()> {
|
pub fn parse_sale_init(&mut self, payload: &[u8], contributor: &Pubkey) -> Result<()> {
|
||||||
// check that the payload has at least the number of bytes
|
// check that the payload has at least the number of bytes
|
||||||
|
|
|
@ -119,6 +119,7 @@ describe("anchor-contributor", () => {
|
||||||
const parsedVaa = parse_vaa(initSaleVaa);
|
const parsedVaa = parse_vaa(initSaleVaa);
|
||||||
//console.log(JSON.stringify(parse_vaa(Buffer.from(initSaleVaa, "hex")), null, 2));
|
//console.log(JSON.stringify(parse_vaa(Buffer.from(initSaleVaa, "hex")), null, 2));
|
||||||
|
|
||||||
|
|
||||||
//Post VAA to Core Bridge
|
//Post VAA to Core Bridge
|
||||||
await postVaaSolanaWithRetry(
|
await postVaaSolanaWithRetry(
|
||||||
program.provider.connection,
|
program.provider.connection,
|
||||||
|
|
Loading…
Reference in New Issue