@@ -32,12 +32,12 @@ class BlockProvider extends Component {
32
32
this . setState ( { address : ( accountAddresses ) ? accountAddresses [ 0 ] . address : null } )
33
33
}
34
34
35
- buy = async ( ) => {
35
+ buy = async ( amount ) => {
36
36
let manifest = new ManifestBuilder ( )
37
37
. callMethod ( this . state . address , "lock_fee" , [ 'Decimal("100")' ] )
38
- . withdrawFromAccountByAmount ( this . state . address , 10 , "resource_tdx_a_1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqegh4k9" )
39
- . takeFromWorktopByAmount ( 10 , "resource_tdx_a_1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqegh4k9" , "bucket1" )
40
- . callMethod ( this . componentAddress , "buy_gumball " , [ 'Bucket("bucket1")' ] )
38
+ . withdrawFromAccountByAmount ( this . state . address , amount , "resource_tdx_a_1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqegh4k9" )
39
+ . takeFromWorktopByAmount ( amount , "resource_tdx_a_1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqegh4k9" , "bucket1" )
40
+ . callMethod ( this . componentAddress , "invest_in_campaigns " , [ 'Bucket("bucket1")' , 'Decimal("0 ")'] )
41
41
. callMethod ( this . state . address , "deposit_batch" , [ 'Expression("ENTIRE_WORKTOP")' ] )
42
42
. build ( )
43
43
. toString ( ) ;
@@ -55,8 +55,12 @@ class BlockProvider extends Component {
55
55
const receipt = await this . transactionApi . transactionReceiptPost ( {
56
56
v0CommittedTransactionRequest : { intent_hash : hash . value } ,
57
57
} )
58
+
59
+ console . log ( receipt . committed . receipt . state_updates )
58
60
}
59
61
62
+ async componentDidMount ( ) { }
63
+
60
64
render ( ) {
61
65
return (
62
66
< BlockContext . Provider value = { {
0 commit comments