size change
This commit is contained in:
parent
503ce38e39
commit
699320e056
|
@ -80,8 +80,8 @@ pub struct Sale {
|
|||
|
||||
impl Sale {
|
||||
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<()> {
|
||||
// check that the payload has at least the number of bytes
|
||||
// required to define the number of accepted tokens
|
||||
|
|
|
@ -119,6 +119,7 @@ describe("anchor-contributor", () => {
|
|||
const parsedVaa = parse_vaa(initSaleVaa);
|
||||
//console.log(JSON.stringify(parse_vaa(Buffer.from(initSaleVaa, "hex")), null, 2));
|
||||
|
||||
|
||||
//Post VAA to Core Bridge
|
||||
await postVaaSolanaWithRetry(
|
||||
program.provider.connection,
|
||||
|
|
Loading…
Reference in New Issue