-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
ptb := sui_types.NewProgrammableTransactionBuilder()
nonceBytes := FomoUtils.Uint64ToBytes(nonce)
err := ptb.MoveCall(m.cfg.PackageId, move_types.Identifier("fomo"), move_types.Identifier("mine"), []move_types.TypeTag{}, []sui_types.CallArg{
sui_types.CallArg{Pure: &nonceBytes}, // nonce
sui_types.CallArg{Object: &sui_types.ObjectArg{SharedObject: &struct {
Id move_types.AccountAddress
InitialSharedVersion uint64
Mutable bool
}{Id: m.field.busId}}}, // bus id
sui_types.CallArg{Object: &sui_types.ObjectArg{SharedObject: &struct {
Id move_types.AccountAddress
InitialSharedVersion uint64
Mutable bool
}{Id: m.field.minerId}}}, // miner id
sui_types.CallArg{Object: &sui_types.ObjectArg{SharedObject: &struct {
Id move_types.AccountAddress
InitialSharedVersion uint64
Mutable bool
}{Id: m.cfg.Clock}}}, // clock
})
if err != nil {
fmt.Println("Move call error, ", err)
return
}
// seee here!!! need to do this
ptb.TransferObject(m.address, [movecall result object])
Metadata
Metadata
Assignees
Labels
No labels