@@ -89,11 +89,11 @@ function findExplicitBurnEventsForAccount(
8989 address : string ,
9090 chain : Chain < any , any > ,
9191) : FrameSystemEventRecord [ ] {
92- const isBifrostKusama = chain . name === 'bifrostKusama'
92+ const isBifrost = chain . name === 'bifrostKusama' || chain . name === 'bifrostPolkadot '
9393 const encoded = encodeAddress ( address , client . config . properties . addressEncoding )
9494
9595 const feeAmounts = new Set < bigint > ( )
96- if ( isBifrostKusama ) {
96+ if ( isBifrost ) {
9797 const feeInfos = client . config . properties . feeExtractor ( events as unknown as any [ ] , client . api )
9898 for ( const fi of feeInfos ) {
9999 if ( fi . who === encoded ) feeAmounts . add ( fi . actualFee )
@@ -845,8 +845,8 @@ async function transferAllowDeathNoKillTest<
845845 expect ( transferEventData . to . toString ( ) ) . toBe ( encodeAddress ( bob . address , client . config . properties . addressEncoding ) )
846846 expect ( transferEventData . amount . toBigInt ( ) ) . toBe ( transferAmount )
847847
848- // On Bifrost Kusama , fees emit Burned (not Withdraw) events. Skip Withdraw check there.
849- if ( chain . name !== 'bifrostKusama' ) {
848+ // On Bifrost networks , fees emit Burned (not Withdraw) events. Skip Withdraw check there.
849+ if ( chain . name !== 'bifrostKusama' && chain . name !== 'bifrostPolkadot' ) {
850850 const withdrawEvent = events . find ( ( record ) => {
851851 const { event } = record
852852 if ( event . section === 'balances' && event . method === 'Withdraw' ) {
@@ -4439,10 +4439,10 @@ export const accountsE2ETests = <
44394439 label : 'self-transfer of entire balance' ,
44404440 testFn : ( ) => transferAllowDeathSelfTest ( chain ) ,
44414441 } ,
4442- // TODO: Bifrost Kusama 's FlexibleFee rejects txs that would leave balance below ED after fees.
4442+ // TODO: Bifrost's FlexibleFee rejects txs that would leave balance below ED after fees.
44434443 // See https://github.com/bifrost-io/bifrost/blob/develop/pallets/flexible-fee/src/lib.rs
44444444 // Introduced in v0.22.0 (#1863): `can_withdraw` only matches `WithdrawConsequence::Success`.
4445- ...( chain . name === 'bifrostKusama'
4445+ ...( chain . name === 'bifrostKusama' || chain . name === 'bifrostPolkadot'
44464446 ? [ ]
44474447 : [
44484448 {
@@ -4535,8 +4535,8 @@ export const accountsE2ETests = <
45354535 label : 'transfer all with keepAlive true leaves 1 ED' ,
45364536 testFn : ( ) => transferAllKeepAliveTrueTest ( chain ) ,
45374537 } ,
4538- // TODO: same Bifrost Kusama FlexibleFee issue as above — see v0.22.0 (#1863)
4539- ...( chain . name === 'bifrostKusama'
4538+ // TODO: same Bifrost FlexibleFee issue as above — see v0.22.0 (#1863)
4539+ ...( chain . name === 'bifrostKusama' || chain . name === 'bifrostPolkadot'
45404540 ? [ ]
45414541 : [
45424542 {
@@ -4645,8 +4645,8 @@ export const accountsE2ETests = <
46454645 label : 'burning entire balance, or more than it, fails' ,
46464646 testFn : ( ) => burnDoubleAttemptTest ( chain ) ,
46474647 } ,
4648- // TODO: same Bifrost Kusama FlexibleFee issue as above — see v0.22.0 (#1863)
4649- ...( chain . name === 'bifrostKusama'
4648+ // TODO: same Bifrost FlexibleFee issue as above — see v0.22.0 (#1863)
4649+ ...( chain . name === 'bifrostKusama' || chain . name === 'bifrostPolkadot'
46504650 ? [ ]
46514651 : [
46524652 {
0 commit comments