From adafda03117173ab522aeb3eb3b87fd9a4c6f1c6 Mon Sep 17 00:00:00 2001 From: MedovTimur Date: Thu, 29 Aug 2024 10:45:48 +0300 Subject: [PATCH] fix notify event --- .DS_Store | Bin 6148 -> 0 bytes extended-vft/.DS_Store | Bin 6148 -> 0 bytes extended-vft/.gitignore | 1 + .../app/src/services/extended_vft/mod.rs | 6 ++++-- extended-vft/wasm/.DS_Store | Bin 6148 -> 0 bytes extended-vnft/.DS_Store | Bin 6148 -> 0 bytes extended-vnft/.gitignore | 1 + .../app/src/services/extended_vnft/mod.rs | 6 ++++-- extended-vnft/wasm/.DS_Store | Bin 6148 -> 0 bytes vft-service/.DS_Store | Bin 6148 -> 0 bytes vft-service/.gitignore | 3 ++- vft-service/src/lib.rs | 11 +++++++---- vnft-service/.DS_Store | Bin 6148 -> 0 bytes vnft-service/.gitignore | 2 +- vnft-service/src/lib.rs | 13 ++++++++----- 15 files changed, 28 insertions(+), 15 deletions(-) delete mode 100644 .DS_Store delete mode 100644 extended-vft/.DS_Store delete mode 100644 extended-vft/wasm/.DS_Store delete mode 100644 extended-vnft/.DS_Store delete mode 100644 extended-vnft/wasm/.DS_Store delete mode 100644 vft-service/.DS_Store delete mode 100644 vnft-service/.DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index b754ad2acd46271f8500ec033a5635e62131c785..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKL2uJA6n^eHma0tZ0i+!*aV=0*G^n^lWgNH?1P4H+X#zw9duq}Zsj8GS{1~qM z68;W+&-TzpH%=1*^q%zm+0XBD=OPAGA;C)Sx z%A%?VgKw&})!x3c6YWIZ=vDI0E|Yp%FRJl${(@Uitu51&`ZRr3|5Z=LN1Jb}-sT&T-&GB>3)Z;`|N-E;Lb1O>BdR;HL4r*-jBAcT*j z0%49;K{LvK5%~);Z=DhuO)*hG6c7b2TY<3mMcvCDSjH0tM1g-^0p1@poG}jAcywC_ z3U>tnwh?xQI{zv%M+b}pHXhLfQ=SU+R28lm%F_|oAukTtc=U8q;qsxvlU2B(DED-X zuU$H+*rSx9fGBWQfi2(c@%jJg;`{$ulC(qtQQ*H)K(!B(!!f25&en~|@mZ_kui!e^h}VKG<}D diff --git a/extended-vft/.DS_Store b/extended-vft/.DS_Store deleted file mode 100644 index db5932d257ad569ec2b05f555ed5b92f2b0527fe..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKO>fgc5S?vI>$F130i<4#EOCuWXi-tb#iZrH6(cwR3U(Y7s~c|=JNOVq^11yn zT=^yZ7f$eIcUxf>s-6%kJJRmkk9oVAXM5K}L}Ii|9~1S6$VXxHwo(1Yc%I7@+pr_d z6TF6+BvK{l@p8_b0#1Q{T><`fI~3EL<}YRA`+bg?y&u|i5ZiPFzXhF;qCJwRCv@84 ze7TlWf-@u8NyB9jUyGvwXVHge;xH<^9_%PgONi%RDVKH!>4` z*YA#dyQ|gy@UR~o44@4%h3hfB)g5XRpSma+a$ztt1JYmfG%Gya0}` z5&!3CkxP}IV4OJ~RnVrOSxcAinEUlvUHaV;O)ld}i-}C|%o<{}M1mI1ZlZvF3;ms& zI6EJwfK%YVQh?8g0EIEMSR2$w2P&Nc06h$ALtFp+0|Ooah8Ams7=Z~x1sbZbDTc7Q zgD`Z=ht|I~Xy_#L&RECpENq4%Z0aEb?M@;z=xV2cQ=q9p$8>vq|G)Ti{@*0Io>Ran zaH|v$-f?t1LP+**y%HSXwE@aU6gKv&4QdK1dmZZrU&Xs9+AtSz0~lJY4Ppf5egw1( Lu5t?eRRw+m=4Z-h diff --git a/extended-vft/.gitignore b/extended-vft/.gitignore index 6d7b97c..582318d 100644 --- a/extended-vft/.gitignore +++ b/extended-vft/.gitignore @@ -1,3 +1,4 @@ /target ./wasm/.binpath ./wasm/.DS_Store +/.DS_Store diff --git a/extended-vft/app/src/services/extended_vft/mod.rs b/extended-vft/app/src/services/extended_vft/mod.rs index cb195bc..ee6c873 100644 --- a/extended-vft/app/src/services/extended_vft/mod.rs +++ b/extended-vft/app/src/services/extended_vft/mod.rs @@ -70,7 +70,8 @@ impl ExtendedService { funcs::mint(Storage::balances(), Storage::total_supply(), to, value) }); if mutated { - let _ = self.notify_on(Event::Minted { to, value }); + self.notify_on(Event::Minted { to, value }) + .expect("Notification Error"); } mutated } @@ -84,7 +85,8 @@ impl ExtendedService { funcs::burn(Storage::balances(), Storage::total_supply(), from, value) }); if mutated { - let _ = self.notify_on(Event::Burned { from, value }); + self.notify_on(Event::Burned { from, value }) + .expect("Notification Error"); } mutated } diff --git a/extended-vft/wasm/.DS_Store b/extended-vft/wasm/.DS_Store deleted file mode 100644 index 574d52686b89add4f9c8324a78e4eda87483fe15..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHLJx{|x41J~@B3Lpq-Yp~4Ou zG}!z8s%a~ZDKV$iqK`rgIK&xlxz2mET<#U7P`Dz!`7`oPi%0;F+zG9T|G-3^)VMz!w9$ zKLn~`nXogATL+u?1R&})Itp#QGHXsqSSIWYIYJRjC0eSaCx%!${UODb2|Ghehs4U9 zCsqD@yhyB0e~96b($HIHz!?}aFtcv1=l?l>GLw(|VT$*h0cYT!F(C8hA}N@wf0 z<>^@)s5evma@*wKCDI1bu)P@8dO!p=}76p0IxrCuXQp`wboxPcyet*iD>P_S`CtvcQ)cJLvJNAnlsJo_VCF%jko zo8x1=tO74x0e*HH6w-)BpVQj&`w^L)TV-ky>vV*=FtL8r9Z;MqL4b4#LXNS10 z)K?lcorL;i%ws-Tm>Y^PR}bN-auU8q+gb&z0(Au%df4Lg|I@$k|8DOQnEt zj)UVKmSoP>M~maL)`OqH*|@IKs3>U6ajZIg6mP+mA?I-i=o_pwA_B870!jwkSOuO{ FfjfDb!fgNm diff --git a/extended-vnft/.gitignore b/extended-vnft/.gitignore index 6d7b97c..582318d 100644 --- a/extended-vnft/.gitignore +++ b/extended-vnft/.gitignore @@ -1,3 +1,4 @@ /target ./wasm/.binpath ./wasm/.DS_Store +/.DS_Store diff --git a/extended-vnft/app/src/services/extended_vnft/mod.rs b/extended-vnft/app/src/services/extended_vnft/mod.rs index b8d0012..212f30b 100644 --- a/extended-vnft/app/src/services/extended_vnft/mod.rs +++ b/extended-vnft/app/src/services/extended_vnft/mod.rs @@ -97,7 +97,8 @@ impl ExtendedService { token_metadata.clone(), ) }); - let _ = self.notify_on(Event::Minted { to, token_metadata }); + self.notify_on(Event::Minted { to, token_metadata }) + .expect("Notification Error"); } pub fn burn(&mut self, from: ActorId, token_id: TokenId) { @@ -113,7 +114,8 @@ impl ExtendedService { token_id, ) }); - let _ = self.notify_on(Event::Burned { from, token_id }); + self.notify_on(Event::Burned { from, token_id }) + .expect("Notification Error"); } pub fn grant_admin_role(&mut self, to: ActorId) { diff --git a/extended-vnft/wasm/.DS_Store b/extended-vnft/wasm/.DS_Store deleted file mode 100644 index 118a90562211ccc249e1d72b22a7f45a0369f0ca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKOHRW;41K0uM6l_S<(!}rHwdLHSaShLD|JaGBXAstNr!@SO91^6h(~*(do&hlW?99#d2)1#4~m`{jixx^cSb}+Z%M);}Ja$ zzQ5~-j%!NHCCBpJgcfj$E8Mfr2MnzDh58A-)_f52b`&$ijuD%&m%JW%Y4((4AQ?yo zl7VF4XBps`tAQ||t49I+ayI!%nI9tEfsb_8BxZ_Y!zp4g>_UID82i-@`ZPC|@+VpD!tD|Po Rc?&1zMZgG2l??m>10QyyGe7_U diff --git a/vft-service/.DS_Store b/vft-service/.DS_Store deleted file mode 100644 index 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 U256 {