@@ -61,12 +61,20 @@ export async function buildActionInput(
6161 if ( poi == '0' || poi == '0x0' ) {
6262 poi = hexlify ( new Uint8Array ( 32 ) . fill ( 0 ) )
6363 }
64+ let publicPOI = actionParams . param5
65+ if ( publicPOI == '0' || publicPOI == '0x0' ) {
66+ publicPOI = hexlify ( new Uint8Array ( 32 ) . fill ( 0 ) )
67+ }
68+ let poiBlockNumber : number | undefined = undefined
69+ if ( actionParams . param4 !== undefined ) {
70+ poiBlockNumber = Number ( actionParams . param4 )
71+ }
6472 return {
6573 deploymentID : actionParams . targetDeployment ,
6674 allocationID : actionParams . param1 ,
6775 poi : poi ,
68- publicPOI : actionParams . param5 ,
69- poiBlockNumber : actionParams . param4 ? Number ( actionParams . param4 ) : undefined ,
76+ publicPOI : publicPOI ,
77+ poiBlockNumber : poiBlockNumber ,
7078 force : actionParams . param3 === 'true' ,
7179 type,
7280 source,
@@ -82,13 +90,21 @@ export async function buildActionInput(
8290 if ( poi == '0' || poi == '0x0' ) {
8391 poi = hexlify ( new Uint8Array ( 32 ) . fill ( 0 ) )
8492 }
93+ let publicPOI = actionParams . param6
94+ if ( publicPOI == '0' || publicPOI == '0x0' ) {
95+ publicPOI = hexlify ( new Uint8Array ( 32 ) . fill ( 0 ) )
96+ }
97+ let poiBlockNumber : number | undefined = undefined
98+ if ( actionParams . param5 !== undefined ) {
99+ poiBlockNumber = Number ( actionParams . param5 )
100+ }
85101 return {
86102 deploymentID : actionParams . targetDeployment ,
87103 allocationID : actionParams . param1 ,
88104 amount : actionParams . param2 ?. toString ( ) ,
89105 poi : poi ,
90- publicPOI : actionParams . param6 ,
91- poiBlockNumber : actionParams . param5 ? Number ( actionParams . param5 ) : undefined ,
106+ publicPOI : publicPOI ,
107+ poiBlockNumber : poiBlockNumber ,
92108 force : actionParams . param4 === 'true' ,
93109 type,
94110 source,
0 commit comments